mirror of
https://github.com/wting/autojump
synced 2025-12-05 06:01:59 +00:00
autojump.bash: fix bash PROMPT_COMMAND space syntax error
Every execution of $PROMPT_COMMAND throws a syntax error for me using bash version 5.2.37(1)-release (x86_64-pc-linux-gnu). The syntax error message goes away if I remove the space before the semi-colon in the modified PROMPT_COMMAND.
This commit is contained in:
parent
ee21082751
commit
df0261a52a
@ -47,7 +47,7 @@ case $PROMPT_COMMAND in
|
|||||||
*autojump*)
|
*autojump*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
PROMPT_COMMAND="${PROMPT_COMMAND:+$(echo "${PROMPT_COMMAND}" | awk '{gsub(/; *$/,"")}1') ; }autojump_add_to_database"
|
PROMPT_COMMAND="${PROMPT_COMMAND:+$(echo "${PROMPT_COMMAND}" | awk '{gsub(/; *$/,"")}1'); }autojump_add_to_database"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user