n 2: set PS1 to full path

This commit is contained in:
nin 2017-01-15 19:56:17 +01:00 committed by lassulus
parent d099a4f6ac
commit 920c79eb9e

View File

@ -113,11 +113,11 @@ with import <stockholm/lib>;
'';
promptInit = ''
if test $UID = 0; then
PS1='\[\033[1;31m\]\w\[\033[0m\] '
PS1='\[\033[1;31m\]$PWD\[\033[0m\] '
elif test $UID = 1337; then
PS1='\[\033[1;32m\]\w\[\033[0m\] '
PS1='\[\033[1;32m\]$PWD\[\033[0m\] '
else
PS1='\[\033[1;33m\]\u@\w\[\033[0m\] '
PS1='\[\033[1;33m\]\u@$PWD\[\033[0m\] '
fi
if test -n "$SSH_CLIENT"; then
PS1='\[\033[35m\]\h'" $PS1"