diff --git a/share/completions/git.fish b/share/completions/git.fish index 35cd87faa..92fad633d 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -487,6 +487,7 @@ function __fish_git_files end if test "$root/$relfile" = (pwd -P)/$relfile + and not string match -q ':*' -- (commandline -ct) set file $relfile end