Skip to content
Snippets Groups Projects
Commit 6ad38bda authored by Junegunn Choi's avatar Junegunn Choi
Browse files

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

`'fc' -l 1` generated an error message on bash
parent 8b80136a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment