mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03:00
git completion: Don't check $cmd[1]
Before we do anything else, remove this senseless piece of code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user