aboutsummaryrefslogtreecommitdiff
path: root/bash.nix
diff options
context:
space:
mode:
Diffstat (limited to 'bash.nix')
-rw-r--r--bash.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/bash.nix b/bash.nix
index b223742..5e757bd 100644
--- a/bash.nix
+++ b/bash.nix
@@ -10,10 +10,12 @@
};
initExtra = ''
+ TITLEBAR='\[\033]0;\u@\h:\w\007\]'
+
if [ -z $IN_NIX_SHELL ] ; then
- export PS1="[\[\e[34m\]\u@\h \W\[\e[39m\]]\$ "
+ export PS1="$TITLEBAR[\[\e[34m\]\u@\h \W\[\e[39m\]]\$ "
else
- export PS1="[\[\e[34m\]\u@\h \W\[\e[39m\]]* "
+ export PS1="$TITLEBAR[\[\e[34m\]\u@\h \W\[\e[39m\]]* "
fi
export PS2="> "
'';