mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 16:05:02 +02:00
Merge branch 'prompt_command-empty-check' of https://github.com/akinomyoga/kitty
This commit is contained in:
@@ -280,7 +280,7 @@ _ksi_main() {
|
|||||||
# from the shell
|
# from the shell
|
||||||
builtin local pc
|
builtin local pc
|
||||||
pc='builtin declare -F _ksi_prompt_command > /dev/null 2> /dev/null && _ksi_prompt_command'
|
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")
|
PROMPT_COMMAND=([0]="$pc")
|
||||||
elif [[ $(builtin declare -p PROMPT_COMMAND 2> /dev/null) =~ 'declare -a PROMPT_COMMAND' ]]; then
|
elif [[ $(builtin declare -p PROMPT_COMMAND 2> /dev/null) =~ 'declare -a PROMPT_COMMAND' ]]; then
|
||||||
PROMPT_COMMAND+=("$pc")
|
PROMPT_COMMAND+=("$pc")
|
||||||
|
|||||||
Reference in New Issue
Block a user