Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

`'fc' -l 1` generated an error message on bash

authored by Junegunn Choi · committed by Junegunn Choi · parent 8b80136 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:README.md+1 added-1 removed
170 unmodified lines
171}172173# fh - repeat history174fh() {175 eval $(('fc' -l 1 || 'history') | fzf +s | sed 's/ *[0-9]* *//')175 eval $(([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s | sed 's/ *[0-9]* *//')176}177178# fkill - kill process179fkill() {
261 unmodified lines