fish: Only use color ls if available
This commit is contained in:
parent
e7304cbcac
commit
fe7f96bb88
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue