mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
git completion: use new test -ef
Just an opportunistic little cleanup. Technically faster.
This commit is contained in:
parent
095c093af6
commit
df51fea897
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ function __fish_git_files
|
|||
set file (string replace -- "$root/" ":/:" "$root/$relfile")
|
||||
end
|
||||
|
||||
if test "$root/$relfile" = (pwd -P)/$relfile
|
||||
if test "$root/$relfile" -ef "$relfile"
|
||||
and not string match -q ':*' -- (commandline -ct)
|
||||
set file $relfile
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue