From b66553136d54cc0b8773b845563cd1391dbeeb5b Mon Sep 17 00:00:00 2001 From: Adam Rabjerg Date: Tue, 25 Jul 2023 10:59:23 +0200 Subject: [PATCH] added bashrc --- bashrc | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bashrc diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..b5d04b2 --- /dev/null +++ b/bashrc @@ -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