From dd218b5113cdc0aef79b3d41de4ee139f2471502 Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Thu, 11 Aug 2016 08:14:25 +0200 Subject: [PATCH] Added empty check for PROMPT_COMMAND in fasd plugin This should fix the additional issue found in #775. --- plugins/available/fasd.plugin.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/available/fasd.plugin.bash b/plugins/available/fasd.plugin.bash index 5db2b359..de27fdbc 100755 --- a/plugins/available/fasd.plugin.bash +++ b/plugins/available/fasd.plugin.bash @@ -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)"