mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 19:22: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"
|
||||
command ls -G $argv
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user