mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 22:17:52 +08:00
git completion: Don't check $cmd[1]
Before we do anything else, remove this senseless piece of code
This commit is contained in:
parent
a828f90d38
commit
31d1e04301
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user