diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2019-03-08 03:10:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-08 03:10:18 +0100 |
commit | 6c81f41e3689763812e43a4a3706bf20e32232e1 (patch) | |
tree | cada1cb849276b4f8507f312f19a8e4d5b7618b9 /nixos | |
parent | 0036842e8d46fee7b3f75b856240a3b722e6f69b (diff) | |
parent | efbd24ffcc42552d0827d7d56b718e0976fb72c8 (diff) | |
download | nixpkgs-6c81f41e3689763812e43a4a3706bf20e32232e1.tar nixpkgs-6c81f41e3689763812e43a4a3706bf20e32232e1.tar.gz nixpkgs-6c81f41e3689763812e43a4a3706bf20e32232e1.tar.bz2 nixpkgs-6c81f41e3689763812e43a4a3706bf20e32232e1.tar.lz nixpkgs-6c81f41e3689763812e43a4a3706bf20e32232e1.tar.xz nixpkgs-6c81f41e3689763812e43a4a3706bf20e32232e1.tar.zst nixpkgs-6c81f41e3689763812e43a4a3706bf20e32232e1.zip |
Merge pull request #56880 from mayflower/bash-root-prompt-fix
nixos/bash: fix root prompt
Diffstat (limited to 'nixos')
-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 d22f9dfa319..d53c6b318f1 100644 --- a/nixos/modules/programs/bash/bash.nix +++ b/nixos/modules/programs/bash/bash.nix @@ -102,7 +102,7 @@ in # Emacs term mode doesn't support xterm title escape sequence (\e]0;) PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] " else - PS1="\n\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\$\[\033[0m\] " + PS1="\n\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w]\\$\[\033[0m\] " fi if test "$TERM" = "xterm"; then PS1="\[\033]2;\h:\u:\w\007\]$PS1" |