Fish: Fix ls function on NetBSD
Apparently `ls ''` shows an error: ls: no such file or directory TIL
This commit is contained in:
parent
6eb5991565
commit
e3adc49796
|
@ -1,7 +1,8 @@
|
||||||
function ls
|
function ls
|
||||||
set lspath (which ls)
|
set lspath (which ls)
|
||||||
if [ (uname) = "NetBSD" ]
|
if [ (uname) = "NetBSD" ]
|
||||||
set __fish_ls_color_opt ""
|
command $lspath $argv
|
||||||
|
return
|
||||||
end
|
end
|
||||||
command $lspath $__fish_ls_color_opt $argv
|
command $lspath $__fish_ls_color_opt $argv
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue