From 31d1e04301f9266aa040a78030992fdaa5995e6e Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 10 Sep 2015 16:17:14 +0200 Subject: [PATCH] git completion: Don't check $cmd[1] Before we do anything else, remove this senseless piece of code --- share/completions/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index f9e7ba2be..ba70dd9f4 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -47,7 +47,7 @@ end function __fish_git_needs_command set cmd (commandline -opc) - if [ (count $cmd) -eq 1 -a $cmd[1] = 'git' ] + if [ (count $cmd) -eq 1 ] return 0 end return 1