From 6513db35c19da0d797ebd2baadfe249f053e3ac3 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Tue, 26 Sep 2017 08:55:28 -0500 Subject: [PATCH] Support colored ls output on Solaris 11 Closes #1223 --- share/functions/ls.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/functions/ls.fish b/share/functions/ls.fish index a51b99c8d..003fc20c0 100644 --- a/share/functions/ls.fish +++ b/share/functions/ls.fish @@ -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