commit | 69ff6038d5c5bb0de120a699875aa84f65f35793 | [log] [tgz] |
---|---|---|
author | Serge Bazanski <q3k@hackerspace.pl> | Sat Sep 11 01:14:13 2021 +0200 |
committer | Serge Bazanski <q3k@hackerspace.pl> | Fri Sep 10 23:15:38 2021 +0000 |
tree | e26e19af7df51a20d661f6855a47a6a8fd33b4c3 | |
parent | eed9afe2109c9660106447289822eb27ed69f07f [diff] [blame] |
shell.nix: colorful prompt https://object.ceph-waw3.hswaw.net/q3k-personal/815968ff10071d4192e464c91b64228e760128267311a94872006d87cbfd0bd9.png Change-Id: Ia4eeddf045af0d0bdc962087aaeed55d11846648
diff --git a/shell.nix b/shell.nix index de3db3c..b56d754 100644 --- a/shell.nix +++ b/shell.nix
@@ -12,6 +12,13 @@ source ${toString ./.}/env.sh ${toString ./.}/tools/install.sh + # Fancy colorful PS1 to make people notice easily they're in hscloud. + PS1='\[\033]0;\u/hscloud:\w\007\]' + if type -P dircolors >/dev/null ; then + PS1+='\[\033[01;35m\]\u/hscloud\[\033[01;34m\] \w \$\[\033[00m\] ' + fi + export PS1 + exec bash "$@" '';