Added empty check for PROMPT_COMMAND in fasd plugin
This should fix the additional issue found in #775.pull/780/head
parent
720936b979
commit
dd218b5113
|
|
@ -24,6 +24,7 @@ __init_fasd() {
|
||||||
# add bash hook
|
# add bash hook
|
||||||
case $PROMPT_COMMAND in
|
case $PROMPT_COMMAND in
|
||||||
*_fasd_prompt_func*) ;;
|
*_fasd_prompt_func*) ;;
|
||||||
|
"") PROMPT_COMMAND="_fasd_prompt_func";;
|
||||||
*) PROMPT_COMMAND="_fasd_prompt_func;$PROMPT_COMMAND";;
|
*) PROMPT_COMMAND="_fasd_prompt_func;$PROMPT_COMMAND";;
|
||||||
esac
|
esac
|
||||||
eval "$(fasd --init bash-ccomp bash-ccomp-install)"
|
eval "$(fasd --init bash-ccomp bash-ccomp-install)"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue