n 2: set PS1 to full path
This commit is contained in:
parent
ed8281aaf5
commit
c25ea17776
|
@ -113,11 +113,11 @@ with import <stockholm/lib>;
|
||||||
'';
|
'';
|
||||||
promptInit = ''
|
promptInit = ''
|
||||||
if test $UID = 0; then
|
if test $UID = 0; then
|
||||||
PS1='\[\033[1;31m\]\w\[\033[0m\] '
|
PS1='\[\033[1;31m\]$PWD\[\033[0m\] '
|
||||||
elif test $UID = 1337; then
|
elif test $UID = 1337; then
|
||||||
PS1='\[\033[1;32m\]\w\[\033[0m\] '
|
PS1='\[\033[1;32m\]$PWD\[\033[0m\] '
|
||||||
else
|
else
|
||||||
PS1='\[\033[1;33m\]\u@\w\[\033[0m\] '
|
PS1='\[\033[1;33m\]\u@$PWD\[\033[0m\] '
|
||||||
fi
|
fi
|
||||||
if test -n "$SSH_CLIENT"; then
|
if test -n "$SSH_CLIENT"; then
|
||||||
PS1='\[\033[35m\]\h'" $PS1"
|
PS1='\[\033[35m\]\h'" $PS1"
|
||||||
|
|
Loading…
Reference in a new issue