mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-30 10:05:58 +00:00
Update example: suppress error message from fc on bash (#37)
`'fc' -l 1` generated an error message on bash
This commit is contained in:
1 parent
8b80136a87
commit
6ad38bdad3
1 file changed
+1
-1
@@ -172,7 +172,7 @@ fda() {
|
|||||||
|
|
||||||
# fh - repeat history
|
# fh - repeat history
|
||||||
fh() {
|
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
|
# fkill - kill process
|
||||||
|
|||||||
Reference in new issue
Block a user