mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
BSD fix for unsupported ls -G alias and added fallback supprt for colorls as per Issue #836
This commit is contained in:
parent
da68dde71b
commit
275ffcec95
1 changed files with 2 additions and 2 deletions
|
|
@ -6,9 +6,9 @@ export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
|||
# Enable ls colors
|
||||
if [ "$DISABLE_LS_COLORS" != "true" ]
|
||||
then
|
||||
UNAME=$(uname -s)
|
||||
|
||||
# Find the option for using colors in ls, depending on the version: Linux or BSD
|
||||
if [[ $UNAME =~ ".*BSD$" ]]; then
|
||||
if [[ $(uname -s) =~ ".*BSD$" ]]; then
|
||||
|
||||
print "BSD"
|
||||
# On NetBSD, test if "gls" (GNU ls) is installed (this one supports colors);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue