From 5b6b7392defb9e495c915ebef48406162f6e1d57 Mon Sep 17 00:00:00 2001 From: Travis Swicegood Date: Fri, 25 Mar 2016 17:18:14 -0500 Subject: [PATCH] Include a note in code about the upstream bugfix and remove trailing spaces --- plugins/available/fasd.plugin.bash | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/available/fasd.plugin.bash b/plugins/available/fasd.plugin.bash index eef18265..9d0442e2 100755 --- a/plugins/available/fasd.plugin.bash +++ b/plugins/available/fasd.plugin.bash @@ -10,9 +10,12 @@ __init_fasd() { eval "$(fasd --init posix-alias)" # Note, this is a custom bash-hook to ensure that the last exit status - # is maintained even while this hook is in place + # is maintained even while this hook is in place. This code can be + # removed once PR #72 is merged into fasd. + # + # See: https://github.com/clvv/fasd/pull/72 _fasd_prompt_func() { - local _exit_code="$? " + local _exit_code="$?" eval "fasd --proc $(fasd --sanitize $(history 1 | \ sed "s/^[ ]*[0-9]*[ ]*//"))" >> "/dev/null" 2>&1 return $_exit_code