Another use of builtin
This commit is contained in:
parent
96269510d3
commit
35207af3de
@ -113,7 +113,7 @@ _ksi_main() {
|
||||
# otherwise append a string
|
||||
if [[ -z "${PROMPT_COMMAND}" ]]; then
|
||||
PROMPT_COMMAND=([0]="_ksi_prompt_command")
|
||||
elif [[ $(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+=("_ksi_prompt_command")
|
||||
else
|
||||
PROMPT_COMMAND+="; _ksi_prompt_command"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user