diff options
author | Matt Singleton <matt@xcolour.net> | 2021-12-08 12:09:33 -0600 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2021-12-08 12:09:33 -0600 |
commit | ae7f2d461d45b666e0a4442fca2679e9ff023302 (patch) | |
tree | 2a8e37ba6592dddf1e45beb2eaf3a150fe18ceb2 /config | |
parent | fbeeeb5053bcd39d50613daa50be7ae6b3cf672b (diff) |
use gnu ls whether it's installed with or without a prefix
Diffstat (limited to 'config')
-rw-r--r-- | config/zsh/20-appearance.zsh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/zsh/20-appearance.zsh b/config/zsh/20-appearance.zsh index e7132a8..be5d436 100644 --- a/config/zsh/20-appearance.zsh +++ b/config/zsh/20-appearance.zsh @@ -2,8 +2,11 @@ # colorize shell programs if ls --color -d . &>/dev/null 2>&1; then - alias ls='ls --color=tty' + alias ls='ls --color=auto' eval `dircolors ${XDG_CONFIG_HOME:-${HOME}/.config}/dircolors.conf` +elif (( $+commands[gls] )); then + alias ls='gls --color=auto' + eval `gdircolors ${XDG_CONFIG_HOME:-${HOME}/.config}/dircolors.conf` else alias ls='ls -G' export LSCOLORS="exgxbxdxcxegedxbxgxcxd" |