mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 08:41:13 +08:00
git completion: use new test -ef
Just an opportunistic little cleanup. Technically faster.
This commit is contained in:
parent
095c093af6
commit
df51fea897
|
@ -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 New Issue
Block a user