mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 07:43:39 -05: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:
@@ -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