fix eza in zshrc and aliases
This commit is contained in:
5
.zshrc
5
.zshrc
@@ -51,14 +51,11 @@ typeset -A ZI
|
|||||||
ZI[BIN_DIR]="${HOME}/.zi/bin"
|
ZI[BIN_DIR]="${HOME}/.zi/bin"
|
||||||
source "${ZI[BIN_DIR]}/zi.zsh"
|
source "${ZI[BIN_DIR]}/zi.zsh"
|
||||||
|
|
||||||
#zi ice has'eza' atinit'AUTOCD=1'
|
|
||||||
#zi light z-shell/zsh-eza
|
|
||||||
|
|
||||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
||||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(colored-man-pages git docker sublime sudo zsh-eza git-prompt)
|
plugins=(colored-man-pages git docker sublime sudo git-prompt)
|
||||||
# ansible brew colorize common-aliases direnv dnf fig tmux zsh-navigation-tools zsh-syntax-highliting
|
# ansible brew colorize common-aliases direnv dnf fig tmux zsh-navigation-tools zsh-syntax-highliting
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|||||||
2
aliases
2
aliases
@@ -40,6 +40,8 @@ if [ -f /opt/homebrew/bin/eza ]; then
|
|||||||
alias lx='eza -lbhHigUmuSa@'
|
alias lx='eza -lbhHigUmuSa@'
|
||||||
alias lt='eza --tree $eza_params'
|
alias lt='eza --tree $eza_params'
|
||||||
alias tree='eza --tree $eza_params'
|
alias tree='eza --tree $eza_params'
|
||||||
|
alias lsize='eza --long --total-size --sort=size $eza_params'
|
||||||
|
|
||||||
else
|
else
|
||||||
alias la='ls -laF ${colorflag}'
|
alias la='ls -laF ${colorflag}'
|
||||||
alias ls='ls -Fh ${colorflagI}'
|
alias ls='ls -Fh ${colorflagI}'
|
||||||
|
|||||||
Reference in New Issue
Block a user