summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2019-03-05 13:27:32 +0100
committerLinus Heckemann <git@sphalerite.org>2019-03-05 13:27:32 +0100
commitefbd24ffcc42552d0827d7d56b718e0976fb72c8 (patch)
tree59347d364e1acb06595773d8ed71371e29c6d572 /nixos
parent1c6a193b3ed36dd08e35a7b0ea1d28b72133d6c6 (diff)
downloadnixpkgs-efbd24ffcc42552d0827d7d56b718e0976fb72c8.tar
nixpkgs-efbd24ffcc42552d0827d7d56b718e0976fb72c8.tar.gz
nixpkgs-efbd24ffcc42552d0827d7d56b718e0976fb72c8.tar.bz2
nixpkgs-efbd24ffcc42552d0827d7d56b718e0976fb72c8.tar.lz
nixpkgs-efbd24ffcc42552d0827d7d56b718e0976fb72c8.tar.xz
nixpkgs-efbd24ffcc42552d0827d7d56b718e0976fb72c8.tar.zst
nixpkgs-efbd24ffcc42552d0827d7d56b718e0976fb72c8.zip
nixos/bash: fix root prompt
b4b67177b53c23c6fb77aea7f0bc5c559f8bebe5 introduced a regression of
its own: the prompt would end with $ for all users, not with # for
root as it should.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/programs/bash/bash.nix2
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"