更新 fish 配置,添加命令缩写和工具说明,包括 eza、thefuck、zoxide 和 fastfetch 的使用说明
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
if status is-interactive
|
if status is-interactive
|
||||||
# Abbreviations (only when target commands exist)
|
# ========= 命令缩写(仅当目标命令存在)=========
|
||||||
|
# ls:优先 eza,其次 exa
|
||||||
if type -q eza
|
if type -q eza
|
||||||
abbr ls eza
|
abbr ls eza
|
||||||
else if type -q exa
|
else if type -q exa
|
||||||
abbr ls exa
|
abbr ls exa
|
||||||
end
|
end
|
||||||
|
|
||||||
type -q bat; and abbr cat bat
|
type -q bat; and abbr cat bat
|
||||||
type -q bat; and abbr cap bat -p
|
type -q bat; and abbr cap bat -p
|
||||||
type -q fd; and abbr find fd
|
type -q fd; and abbr find fd
|
||||||
@@ -13,9 +15,13 @@ if status is-interactive
|
|||||||
type -q tldr; and abbr help tldr
|
type -q tldr; and abbr help tldr
|
||||||
type -q chezmoi; and abbr cz chezmoi
|
type -q chezmoi; and abbr cz chezmoi
|
||||||
|
|
||||||
|
# ========= thefuck:自动命令纠错 =========
|
||||||
type -q thefuck; and thefuck --alias | source
|
type -q thefuck; and thefuck --alias | source
|
||||||
|
|
||||||
|
# ========= zoxide:智能目录跳转 =========
|
||||||
|
# 使用 --cmd=cd:让 cd 也具备 zoxide 的跳转能力(交互式对应 cdi)
|
||||||
type -q zoxide; and zoxide init --cmd=cd fish | source
|
type -q zoxide; and zoxide init --cmd=cd fish | source
|
||||||
|
|
||||||
|
# ========= fastfetch:启动信息显示 =========
|
||||||
type -q fastfetch; and fastfetch
|
type -q fastfetch; and fastfetch
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user