mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-08-17 02:20:25 +03:00
Fix Bash integration removing existing elements of PROMPT_COMMAND
This commit is contained in:
parent
7c14e0d666
commit
af84161528
@ -280,7 +280,7 @@ _ksi_main() {
|
||||
# from the shell
|
||||
builtin local pc
|
||||
pc='builtin declare -F _ksi_prompt_command > /dev/null 2> /dev/null && _ksi_prompt_command'
|
||||
if [[ -z "${PROMPT_COMMAND}" ]]; then
|
||||
if [[ -z "${PROMPT_COMMAND[*]}" ]]; then
|
||||
PROMPT_COMMAND=([0]="$pc")
|
||||
elif [[ $(builtin declare -p PROMPT_COMMAND 2> /dev/null) =~ 'declare -a PROMPT_COMMAND' ]]; then
|
||||
PROMPT_COMMAND+=("$pc")
|
||||
|
Loading…
Reference in New Issue
Block a user