From 5e208e5642e72e041975dcaaeadb0e8fb5bdcd52 Mon Sep 17 00:00:00 2001 From: Mateus Revoredo Date: Thu, 14 May 2015 14:32:51 -0300 Subject: [PATCH] Adding a space in the "fh" function, in order to make it work properly when use alongside other functions in the same file. --- Examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples.md b/Examples.md index 57c152b..540f2e6 100644 --- a/Examples.md +++ b/Examples.md @@ -71,14 +71,14 @@ ag --nobreak --nonumbers --noheading . | fzf ```sh # fh - repeat history fh() { - eval $(([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | 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 --tac | sed 's/ *[0-9]* *//') + print -z $( ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed 's/ *[0-9]* *//') } ```