You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Detect which `ls` flavor is in useif ls --color > /dev/null 2>&1;then# GNU `ls`
colorflag="--color"export LS_COLORS=[...]
else# macOS `ls`
colorflag="-G"export LSCOLORS=[...]
fi
At some point, the macOS version of ls started understanding the --color flag (I'm on 14.4.1)
I propose this instead, but I can't test it against earlier versions of macOS:
if ls --help > /dev/null 2>&1;thenecho"GNU ls";elseecho"MacOS ls";fi;
PR to follow.
The text was updated successfully, but these errors were encountered:
At some point, the macOS version of
ls
started understanding the--color
flag (I'm on 14.4.1)I propose this instead, but I can't test it against earlier versions of macOS:
PR to follow.
The text was updated successfully, but these errors were encountered: