feat(zsh): 优化补全匹配与 eza 别名
This commit is contained in:
+6
-2
@@ -21,6 +21,9 @@ else
|
|||||||
compinit -C
|
compinit -C
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 保留大小写敏感优先,找不到时再回退到大小写不敏感补全
|
||||||
|
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}'
|
||||||
|
|
||||||
# ── 外部插件 ──
|
# ── 外部插件 ──
|
||||||
source /usr/share/zsh/plugins/fzf-tab-git/fzf-tab.plugin.zsh
|
source /usr/share/zsh/plugins/fzf-tab-git/fzf-tab.plugin.zsh
|
||||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
@@ -60,8 +63,9 @@ alias ...="cd ../.."
|
|||||||
# 文件列表(公共参数提取,DRY)
|
# 文件列表(公共参数提取,DRY)
|
||||||
_EZA_BASE=(--icons --group-directories-first --git)
|
_EZA_BASE=(--icons --group-directories-first --git)
|
||||||
alias ls="eza ${_EZA_BASE}"
|
alias ls="eza ${_EZA_BASE}"
|
||||||
alias ll="eza -la ${_EZA_BASE}"
|
alias l="eza -la ${_EZA_BASE}"
|
||||||
alias la="eza -a ${_EZA_BASE}"
|
alias ll="eza -l ${_EZA_BASE}"
|
||||||
|
alias la="eza -lA ${_EZA_BASE}"
|
||||||
alias lt="eza --tree --level=2 ${_EZA_BASE}"
|
alias lt="eza --tree --level=2 ${_EZA_BASE}"
|
||||||
|
|
||||||
# 工具
|
# 工具
|
||||||
|
|||||||
Reference in New Issue
Block a user