diff --git a/home/modules/zsh.nix b/home/modules/zsh.nix index dd61bed..4ca4f4c 100644 --- a/home/modules/zsh.nix +++ b/home/modules/zsh.nix @@ -35,6 +35,12 @@ }; initContent = '' + # oh-my-zsh assumes macOS => BSD ls and aliases `ls -G`. But GNU + # coreutils `ls` (from nix) is first on PATH, where `-G` means + # --no-group, not color. Override after oh-my-zsh has loaded so ls + # actually colorizes (ll/la/l inherit this via alias expansion). + alias ls='ls --color=auto' + # Conditional Editor logic if [[ -n $SSH_CONNECTION ]]; then export EDITOR='nano'