about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-24T09·22+0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-24T09·22+0200
commit01200d07d2e6e781c7c7935b1d13f8b3b2d0271a (patch)
tree0fdfbce8e25d4739eb1e045bc9a3dbecbe83ea6d /src
parentb303ad012cc4fa9d4fc947191e685eaef45fb6ed (diff)
parentd48edcc3a5f7b20e116b3a1148af565d7f27f3cd (diff)
Merge branch 'prompt-terminator' of https://github.com/lheckemann/nix
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nix-build/nix-build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc
index cd4dee32674e..b7cf36d16071 100755
--- a/src/nix-build/nix-build.cc
+++ b/src/nix-build/nix-build.cc
@@ -438,7 +438,7 @@ int main(int argc, char ** argv)
                         "[ -e $stdenv/setup ] && source $stdenv/setup; "
                         "%3%"
                         "set +e; "
-                        "[ -n \"$PS1\" ] && PS1=\"\\n\\[\\033[1;32m\\][nix-shell:\\w]$\\[\\033[0m\\] \"; "
+                        "[ -n \"$PS1\" ] && PS1=\"\\n\\[\\033[1;32m\\][nix-shell:\\w]\\$\\[\\033[0m\\] \"; "
                         "if [ \"$(type -t runHook)\" = function ]; then runHook shellHook; fi; "
                         "unset NIX_ENFORCE_PURITY; "
                         "unset NIX_INDENT_MAKE; "