mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
parent
ffebe74885
commit
6513db35c1
1 changed files with 5 additions and 0 deletions
|
@ -34,4 +34,9 @@ else if command ls -G / >/dev/null ^/dev/null
|
||||||
function ls --description "List contents of directory"
|
function ls --description "List contents of directory"
|
||||||
command ls -G $argv
|
command ls -G $argv
|
||||||
end
|
end
|
||||||
|
else if command ls --color / >/dev/null 2>/dev/null
|
||||||
|
# Solaris 11's ls command takes a --color flag
|
||||||
|
function ls --description "List contents of directory"
|
||||||
|
command ls --color $argv
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue