Fish: Fix ls function on NetBSD

Apparently `ls ''` shows an error:

ls: no such file or directory

TIL
This commit is contained in:
hedy 2022-03-31 18:05:40 +08:00
parent 6eb5991565
commit e3adc49796
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
function ls
set lspath (which ls)
if [ (uname) = "NetBSD" ]
set __fish_ls_color_opt ""
command $lspath $argv
return
end
command $lspath $__fish_ls_color_opt $argv
end