Moves runHook to a later execution position
It moves runHook to a later position in the rcfile. After that we are able to set the PS1 environment-variable for a nix-shell environment e.g.: # turn the color of the prompt to blue shellHook = '' export PS1="\n\[\033[1;34m\][\u@\h:\w]$\[\033[0m\] "; '';
This commit is contained in:
parent
f46e329a13
commit
de91a42c6e
1 changed files with 1 additions and 1 deletions
|
@ -278,10 +278,10 @@ foreach my $expr (@exprs) {
|
||||||
($pure ? '' : 'p=$PATH; ' ) .
|
($pure ? '' : 'p=$PATH; ' ) .
|
||||||
'dontAddDisableDepTrack=1; ' .
|
'dontAddDisableDepTrack=1; ' .
|
||||||
'[ -e $stdenv/setup ] && source $stdenv/setup; ' .
|
'[ -e $stdenv/setup ] && source $stdenv/setup; ' .
|
||||||
'if [ "$(type -t runHook)" = function ]; then runHook shellHook; fi; ' .
|
|
||||||
($pure ? '' : 'PATH=$PATH:$p; unset p; ') .
|
($pure ? '' : 'PATH=$PATH:$p; unset p; ') .
|
||||||
'set +e; ' .
|
'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_ENFORCE_PURITY; ' .
|
||||||
'unset NIX_INDENT_MAKE; ' .
|
'unset NIX_INDENT_MAKE; ' .
|
||||||
'shopt -u nullglob; ' .
|
'shopt -u nullglob; ' .
|
||||||
|
|
Loading…
Reference in a new issue