diff options
author | 2010-09-19 00:17:53 +0800 | |
---|---|---|
committer | 2010-09-19 00:17:53 +0800 | |
commit | d957d23d8f387cfe601b9f8c6d03bca9073e9e19 (patch) | |
tree | a49cff514ad1d9faac77d52d61502380cf0691e2 /share/completions/git.fish | |
parent | d0499478017be536eb8d17d963ced01e9b45f543 (diff) |
match the whole command for git completion
Diffstat (limited to 'share/completions/git.fish')
-rw-r--r-- | share/completions/git.fish | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish index 46a75188..007bc9e1 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 |