diff --git a/zsh.d/50_listings.zsh b/zsh.d/50_listings.zsh new file mode 100644 index 0000000..e53b4bf --- /dev/null +++ b/zsh.d/50_listings.zsh @@ -0,0 +1,11 @@ +# vim: ft=zsh + +if command-exists dircolors; then + eval "$(dircolors -b)" +fi +if command-exists eza; then + alias ls='eza --git --long --all --time-style long-iso' +else + LSOPTS="-lAvF --color=auto" # long mode, show all, natural sort, type squiggles, friendly sizes + alias ls="ls $LSOPTS" +fi diff --git a/zshrc b/zshrc index b302668..8eb1b7c 100644 --- a/zshrc +++ b/zshrc @@ -45,18 +45,6 @@ command-exists() { NEWLINE=$'\n' ZDOTDIR=${ZDOTDIR:-$HOME/.zsh} -#---------------------------------- Listings ---------------------------------- - -if command-exists dircolors; then - eval "$(dircolors -b)" -fi -if command-exists eza; then - alias ls='eza --git --long --all --time-style long-iso' -else - LSOPTS="-lAvF --color=auto" # long mode, show all, natural sort, type squiggles, friendly sizes - alias ls="ls $LSOPTS" -fi - #---------------------------------- Tab completion ---------------------------- # Force a reload of completion system if nothing matched; this fixes installing