1
1
Fork 0

fish: Only use color ls if available

This commit is contained in:
Jonathan Schleifer 2022-11-27 15:02:44 +00:00
parent e7304cbcac
commit fe7f96bb88

View file

@ -1,7 +1,9 @@
function ls --description 'List contents of directory'
if type -q gls
if type -q gls
function ls --description 'List contents of directory'
command gls --color=auto $argv
else
end
else if command ls --color=auto &>/dev/null
function ls --description 'List contents of directory'
command ls --color=auto $argv
end
end