diff options
author | Yegor Timoshenko <yegortimoshenko@riseup.net> | 2018-12-07 22:42:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-07 22:42:55 +0300 |
commit | d53077b20c4fb09aac0d5b32ee1fe0094f206f81 (patch) | |
tree | 795d2d9ee7545a92fb31eb4fbb99d4ffa21d6381 /nixos/modules/programs/bash | |
parent | 716a38d015a85f5b79d7358ef4bbfe429d5014b5 (diff) |
nixos/bash: set title in PS1
Diffstat (limited to 'nixos/modules/programs/bash')
-rw-r--r-- | nixos/modules/programs/bash/bash.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/programs/bash/bash.nix b/nixos/modules/programs/bash/bash.nix index d325fff6a572..2b01c9d26c41 100644 --- a/nixos/modules/programs/bash/bash.nix +++ b/nixos/modules/programs/bash/bash.nix @@ -98,7 +98,7 @@ in if [ "$TERM" != "dumb" -o -n "$INSIDE_EMACS" ]; then PROMPT_COLOR="1;31m" let $UID && PROMPT_COLOR="1;32m" - PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] " + PS1="\n\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\$\[\033[0m\] " if test "$TERM" = "xterm"; then PS1="\[\033]2;\h:\u:\w\007\]$PS1" fi |