A better root prompt
authorPeter Palfrader <peter@palfrader.org>
Tue, 16 Feb 2016 23:14:06 +0000 (00:14 +0100)
committerPeter Palfrader <peter@palfrader.org>
Tue, 16 Feb 2016 23:14:13 +0000 (00:14 +0100)
modules/debian-org/files/root-dotfiles/profile

index d22315e..e4bb8db 100644 (file)
@@ -7,6 +7,9 @@ if [ "$BASH" ]; then
   if [ -f ~/.bashrc ]; then
     . ~/.bashrc
   fi
+  if [ "$PS1" ]; then
+    PS1='${debian_chroot:+[$debian_chroot] }\h:\w\$ '
+  fi
 fi
 
 mesg n