Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0036842e8d46
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6c81f41e3689
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 5, 2019

  1. nixos/bash: fix root prompt

    b4b6717 introduced a regression of
    its own: the prompt would end with $ for all users, not with # for
    root as it should.
    lheckemann committed Mar 5, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    efbd24f View commit details

Commits on Mar 8, 2019

  1. Merge pull request #56880 from mayflower/bash-root-prompt-fix

    nixos/bash: fix root prompt
    infinisil authored Mar 8, 2019
    Copy the full SHA
    6c81f41 View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 nixos/modules/programs/bash/bash.nix
2 changes: 1 addition & 1 deletion nixos/modules/programs/bash/bash.nix
Original file line number Diff line number Diff line change
@@ -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"