summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornin <nineinchnade@gmail.com>2017-01-15 19:56:17 +0100
committerlassulus <lass@lassul.us>2017-01-15 20:07:39 +0100
commit7b4c67d2929b6d83525162a6677772a73ad60d08 (patch)
tree8ac97d7a3720170f5c7f9b1c517aee066a0870ab
parent638a085a4eb4a4a40407f303cbd22bdd50ace002 (diff)
n 2: set PS1 to full path
-rw-r--r--nin/2configs/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nin/2configs/default.nix b/nin/2configs/default.nix
index c71d02a..2e6fc88 100644
--- a/nin/2configs/default.nix
+++ b/nin/2configs/default.nix
@@ -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"