Skip to content
Permalink
Browse files

nixos/bash: set title in PS1

  • Loading branch information
yegortimoshenko committed Dec 7, 2018
1 parent 716a38d commit d53077b20c4fb09aac0d5b32ee1fe0094f206f81
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit d53077b

Please sign in to comment.
You can’t perform that action at this time.