aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/git.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-10 16:17:14 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-10 16:17:14 +0200
commit31d1e04301f9266aa040a78030992fdaa5995e6e (patch)
tree68940797c5f3b39c72e12a6d38d39094024a7483 /share/completions/git.fish
parenta828f90d38f615b60dc686598c1780904062b9ed (diff)
git completion: Don't check $cmd[1]
Before we do anything else, remove this senseless piece of code
Diffstat (limited to 'share/completions/git.fish')
-rw-r--r--share/completions/git.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish
index f9e7ba2b..ba70dd9f 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