diff --git a/README.md b/README.md index db03602..e8b5661 100644 --- a/README.md +++ b/README.md @@ -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