diff options
author | lassulus <lass@lassul.us> | 2017-01-17 15:57:38 +0100 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-01-17 15:57:38 +0100 |
commit | dce67d4a03cc9c9660a7a867d96b67c1de845222 (patch) | |
tree | d141a679df7cc44859ba00af606b74cdca58e357 /lass/2configs/default.nix | |
parent | 4a21d12981e8edcd1f6ec0fd5214a62b72a2957c (diff) |
l 2: show shell PID in window title
Diffstat (limited to 'lass/2configs/default.nix')
-rw-r--r-- | lass/2configs/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lass/2configs/default.nix b/lass/2configs/default.nix index 033fdd442..63114cdb1 100644 --- a/lass/2configs/default.nix +++ b/lass/2configs/default.nix @@ -161,17 +161,17 @@ with import <stockholm/lib>; promptInit = '' if test $UID = 0; then PS1='\[\033[1;31m\]\w\[\033[0m\] ' - PROMPT_COMMAND='echo -ne "\033]0;$USER@$PWD\007"' + PROMPT_COMMAND='echo -ne "\033]0;$$ $USER@$PWD\007"' elif test $UID = 1337; then PS1='\[\033[1;32m\]\w\[\033[0m\] ' - PROMPT_COMMAND='echo -ne "\033]0;$PWD\007"' + PROMPT_COMMAND='echo -ne "\033]0;$$ $PWD\007"' else PS1='\[\033[1;33m\]\u@\w\[\033[0m\] ' - PROMPT_COMMAND='echo -ne "\033]0;$USER@$PWD\007"' + PROMPT_COMMAND='echo -ne "\033]0;$$ $USER@$PWD\007"' fi if test -n "$SSH_CLIENT"; then PS1='\[\033[35m\]\h'" $PS1" - PROMPT_COMMAND='echo -ne "\033]0;$HOSTNAME $USER@$PWD\007"' + PROMPT_COMMAND='echo -ne "\033]0;$$ $HOSTNAME $USER@$PWD\007"' fi ''; }; |