From 4d31154195f3f0d9b7e0ac8007a9dee106810528 Mon Sep 17 00:00:00 2001 From: Erystasius Date: Wed, 1 Apr 2026 23:06:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20fish=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=91=BD=E4=BB=A4=E7=BC=A9=E5=86=99?= =?UTF-8?q?=E5=92=8C=E5=B7=A5=E5=85=B7=E8=AF=B4=E6=98=8E=EF=BC=8C=E5=8C=85?= =?UTF-8?q?=E6=8B=AC=20eza=E3=80=81thefuck=E3=80=81zoxide=20=E5=92=8C=20fa?= =?UTF-8?q?stfetch=20=E7=9A=84=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot_config/fish/config.fish | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dot_config/fish/config.fish b/dot_config/fish/config.fish index 040a30d..739195e 100644 --- a/dot_config/fish/config.fish +++ b/dot_config/fish/config.fish @@ -1,10 +1,12 @@ if status is-interactive - # Abbreviations (only when target commands exist) + # ========= 命令缩写(仅当目标命令存在)========= + # ls:优先 eza,其次 exa if type -q eza abbr ls eza else if type -q exa abbr ls exa end + type -q bat; and abbr cat bat type -q bat; and abbr cap bat -p type -q fd; and abbr find fd @@ -13,9 +15,13 @@ if status is-interactive type -q tldr; and abbr help tldr type -q chezmoi; and abbr cz chezmoi + # ========= thefuck:自动命令纠错 ========= type -q thefuck; and thefuck --alias | source + # ========= zoxide:智能目录跳转 ========= + # 使用 --cmd=cd:让 cd 也具备 zoxide 的跳转能力(交互式对应 cdi) type -q zoxide; and zoxide init --cmd=cd fish | source + # ========= fastfetch:启动信息显示 ========= type -q fastfetch; and fastfetch end