move Listings to partial

This commit is contained in:
vonProteus 2024-05-03 08:10:32 +02:00 committed by Paweł Płazieński
parent e646ca45cd
commit 4f2bb48521
2 changed files with 11 additions and 12 deletions

11
zsh.d/50_listings.zsh Normal file
View File

@ -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

12
zshrc
View File

@ -45,18 +45,6 @@ command-exists() {
NEWLINE=$'\n' NEWLINE=$'\n'
ZDOTDIR=${ZDOTDIR:-$HOME/.zsh} 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 ---------------------------- #---------------------------------- Tab completion ----------------------------
# Force a reload of completion system if nothing matched; this fixes installing # Force a reload of completion system if nothing matched; this fixes installing