Merge pull request #780 from nwinkler/fasd-prompt-command

Added empty check for PROMPT_COMMAND in fasd plugin
pull/781/head
Nils Winkler 2016-08-11 08:17:25 +02:00 committed by GitHub
commit e30af1d5e0
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ __init_fasd() {
# add bash hook
case $PROMPT_COMMAND in
*_fasd_prompt_func*) ;;
"") PROMPT_COMMAND="_fasd_prompt_func";;
*) PROMPT_COMMAND="_fasd_prompt_func;$PROMPT_COMMAND";;
esac
eval "$(fasd --init bash-ccomp bash-ccomp-install)"