From c25ea177769cec429b8e4d0b021cd2fc39bab21a Mon Sep 17 00:00:00 2001 From: nin Date: Sun, 15 Jan 2017 19:56:17 +0100 Subject: n 2: set PS1 to full path --- nin/2configs/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nin') diff --git a/nin/2configs/default.nix b/nin/2configs/default.nix index bb7bba424..8ea9e49d8 100644 --- a/nin/2configs/default.nix +++ b/nin/2configs/default.nix @@ -113,11 +113,11 @@ with import ; ''; 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" -- cgit v1.2.3