mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Programs/Bash] do not overwrite PROMPT_COMMAND if it is already set
This commit is contained in:
parent
8c2335f27c
commit
433565ff9c
1 changed files with 2 additions and 2 deletions
|
|
@ -16,9 +16,9 @@ with lib;
|
|||
PS1="$(${pkgs.powerline-go}/bin/powerline-go -error $? -jobs $(jobs -p | wc -l))"
|
||||
}
|
||||
if [ "$TERM" != "dumb" ] && [ "$TERM" != "linux" ]; then
|
||||
export PROMPT_COMMAND="_prompt"
|
||||
export PROMPT_COMMAND="_prompt''${PROMPT_COMMAND:+;$PROMPT_COMMAND}"
|
||||
export -f _prompt
|
||||
fi
|
||||
export -f _prompt
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue