From d957d23d8f387cfe601b9f8c6d03bca9073e9e19 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Sun, 19 Sep 2010 00:17:53 +0800 Subject: [PATCH] match the whole command for git completion --- share/completions/git.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index 46a75188c..007bc9e16 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -43,7 +43,8 @@ end function __fish_git_using_command set cmd (commandline -opc) if [ (count $cmd) -gt 1 ] - if [ $argv[1] = $cmd[2] ] + set -e cmd[1] + if [ (echo $argv) = (echo $cmd) ] return 0 end end