mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +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))"
|
PS1="$(${pkgs.powerline-go}/bin/powerline-go -error $? -jobs $(jobs -p | wc -l))"
|
||||||
}
|
}
|
||||||
if [ "$TERM" != "dumb" ] && [ "$TERM" != "linux" ]; then
|
if [ "$TERM" != "dumb" ] && [ "$TERM" != "linux" ]; then
|
||||||
export PROMPT_COMMAND="_prompt"
|
export PROMPT_COMMAND="_prompt''${PROMPT_COMMAND:+;$PROMPT_COMMAND}"
|
||||||
|
export -f _prompt
|
||||||
fi
|
fi
|
||||||
export -f _prompt
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue