mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-09 20:54:51 +01:00
Reorganize ll
handling. eza also now preferred
This commit is contained in:
parent
074d7abd35
commit
8b73ae1cdc
20
zsh/alias
20
zsh/alias
@ -2,26 +2,6 @@
|
||||
# filename: /zsh/alias
|
||||
#--------------------------------
|
||||
|
||||
# Better LS
|
||||
if [[ $platform == 'Linux' ]]; then
|
||||
alias bls='pwd; ls -lahp --color=auto --group-directories-first'
|
||||
elif [[ $platform == 'macOS' && -x $(which gls) ]]; then
|
||||
alias bls='pwd; gls -lahpG --group-directories-first'
|
||||
elif [[ $platform == 'macOS' ]]; then
|
||||
alias bls='/bin/ls -lahG'
|
||||
fi
|
||||
|
||||
# Better eza
|
||||
if [[ -x $(which eza) ]]; then
|
||||
alias eza='pwd; eza --long --all --all --group-directories-first --git --group'
|
||||
# --all (2x) to show `.` and `..` directories as well
|
||||
fi
|
||||
|
||||
# Better lsd
|
||||
if [[ -x $(which lsd) ]]; then
|
||||
alias lsd='pwd; lsd -laF --group-dirs=first --icon=never'
|
||||
fi
|
||||
|
||||
# Update tools/OS aliases
|
||||
if [[ -x $(which brew) ]]; then
|
||||
alias brewupdate='brew update; brew upgrade; brew upgrade --cask; brew cleanup'
|
||||
|
23
zsh/env
23
zsh/env
@ -11,13 +11,26 @@ export LC_TYPE=en_US.UTF-8
|
||||
# set default editor
|
||||
export EDITOR="nano"
|
||||
|
||||
# set `ll` command - b(etter)ls per default
|
||||
# set `ll` alias
|
||||
# eza > lsd > bls
|
||||
alias ll=bls
|
||||
if test -x "$(which eza)"; then
|
||||
alias ll=eza
|
||||
fi
|
||||
if test -x "$(which lsd)"; then
|
||||
|
||||
if [[ -x $(which lsd) ]]; then
|
||||
alias ll=lsd
|
||||
alias lsd='pwd; lsd -laF --group-dirs=first --icon=never'
|
||||
fi
|
||||
if [[ -x $(which eza) ]]; then
|
||||
alias ll=eza
|
||||
alias eza='pwd; eza --long --all --all --group-directories-first --git --group'
|
||||
fi
|
||||
|
||||
## Better LS
|
||||
if [[ $platform == 'Linux' ]]; then
|
||||
alias bls='pwd; ls -lahp --color=auto --group-directories-first'
|
||||
elif [[ $platform == 'macOS' && -x $(which gls) ]]; then
|
||||
alias bls='pwd; gls -lahpG --group-directories-first'
|
||||
elif [[ $platform == 'macOS' ]]; then
|
||||
alias bls='/bin/ls -lahG'
|
||||
fi
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user