added bashrc

This commit is contained in:
Rabjerg committed 2023-07-25 10:59:23 +02:00
1 parent 1fa012cd33
commit b66553136d
1 file changed
+8
+8
View File
@@ -0,0 +1,8 @@
function nix-pkgversion {
readlink -f $(which $@) | cut -d"-" -f 2- | cut -d"/" -f 1
}
export PS1="\[\033[38;5;118m\]\u\[$(tput sgr0)\]@\[$(tput sgr0)\]\[\033[38;5;119m\]\h\[$(tput sgr0)\]:\[$(tput sgr0)\]\[\033[38;5;45m\][\w]\[$(tput sgr0)\]{\$?}\\$ \[$(tput sgr0)\]"
timeout 3 bash /home/adam/git/private/b1_motd/update_motd.sh