From 6ad38bdad3589c472d7ff93eb23719b09273f7b5 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 4 Apr 2014 10:21:35 +0900 Subject: [PATCH] Update example: suppress error message from fc on bash (#37) `'fc' -l 1` generated an error message on bash --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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