Support colored ls output on Solaris 11

Closes #1223
This commit is contained in:
Mahmoud Al-Qudsi 2017-09-26 08:55:28 -05:00
parent ffebe74885
commit 6513db35c1

View file

@ -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