git completion: Don't check $cmd[1]

Before we do anything else, remove this senseless piece of code
This commit is contained in:
Fabian Homborg 2015-09-10 16:17:14 +02:00
parent a828f90d38
commit 31d1e04301

View File

@ -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