From af8d8a705ab21f789c74caae548e7a5f140aa0e4 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 1 Mar 2015 12:41:59 +0900 Subject: [PATCH] Add --tac option to fh --- Examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples.md b/Examples.md index b2b230b..1e944dd 100644 --- a/Examples.md +++ b/Examples.md @@ -60,14 +60,14 @@ grep --line-buffered --color=never -r "" * | fzf ```sh # fh - repeat history fh() { - eval $(([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s | sed 's/ *[0-9]* *//') + eval $(([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed 's/ *[0-9]* *//') } ``` ```sh # fh - repeat history fh() { - print -z $(([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s | sed 's/ *[0-9]* *//') + print -z $(([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed 's/ *[0-9]* *//') } ```