From 1930af842a933b9cd36e7f06f0d11dbb7fbfcf2d Mon Sep 17 00:00:00 2001 From: Wenxuan Date: Wed, 22 Nov 2017 16:50:55 +0800 Subject: [PATCH] Fix quote issue --- forgit.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index a5b4314..d20f841 100644 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -43,7 +43,7 @@ unalias gi 2>/dev/null gi() { [ -f $giIndex ] || gi-update-index IFS=$'\n' - [[ $# -gt 0 ]] && args=$@ || args=$(cat $giIndex |nl -nrn -w4 -s' ' |fzf -m | awk '{print $2}') + [[ $# -gt 0 ]] && args="$@" || args="$(cat $giIndex |nl -nrn -w4 -s' ' |fzf -m | awk '{print $2}')" gi-get $args } gi-update-index() {