Include a note in code about the upstream bugfix and remove trailing spaces

pull/691/head
Travis Swicegood 2016-03-25 17:18:14 -05:00
parent 06b458c896
commit 5b6b7392de
1 changed files with 5 additions and 2 deletions

View File

@ -10,9 +10,12 @@ __init_fasd() {
eval "$(fasd --init posix-alias)" eval "$(fasd --init posix-alias)"
# Note, this is a custom bash-hook to ensure that the last exit status # 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() { _fasd_prompt_func() {
local _exit_code="$? " local _exit_code="$?"
eval "fasd --proc $(fasd --sanitize $(history 1 | \ eval "fasd --proc $(fasd --sanitize $(history 1 | \
sed "s/^[ ]*[0-9]*[ ]*//"))" >> "/dev/null" 2>&1 sed "s/^[ ]*[0-9]*[ ]*//"))" >> "/dev/null" 2>&1
return $_exit_code return $_exit_code