Update example: suppress error message from fc on bash (#37)

`'fc' -l 1` generated an error message on bash
This commit is contained in:
Junegunn Choi 2014-04-04 10:21:35 +09:00
parent 8b80136a87
commit 6ad38bdad3

View File

@ -172,7 +172,7 @@ fda() {
# fh - repeat history
fh() {
eval $(('fc' -l 1 || 'history') | fzf +s | sed 's/ *[0-9]* *//')
eval $(([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s | sed 's/ *[0-9]* *//')
}
# fkill - kill process