mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 01:02:45 +08:00
Support colored ls output on Solaris 11
Closes #1223
(cherry picked from commit 6513db35c1
)
This commit is contained in:
parent
d1472532d3
commit
fc80505ecc
|
@ -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 New Issue
Block a user