mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-09 18:41:06 +01:00
powerline-go: fix PROMPT_COMMAND duplicate in bash initialization (#7697)
This commit is contained in:
parent
768a7042a6
commit
20c7963471
2 changed files with 6 additions and 1 deletions
|
|
@ -165,7 +165,9 @@ in
|
|||
}
|
||||
|
||||
if [ "$TERM" != "linux" ]; then
|
||||
PROMPT_COMMAND="_update_ps1;$PROMPT_COMMAND"
|
||||
if [[ ";''${PROMPT_COMMAND:-};" != *";_update_ps1;"* ]]; then
|
||||
PROMPT_COMMAND="_update_ps1''${PROMPT_COMMAND:+;$PROMPT_COMMAND}"
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue