From 01cd8eff4958e69f73de12b145f34fe7f9d86f52 Mon Sep 17 00:00:00 2001 From: Erystasius Date: Thu, 2 Apr 2026 19:56:41 +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=8Czoxide=20=E4=B8=8D=E7=9B=B4=E6=8E=A5=E8=A6=86=E7=9B=96?= =?UTF-8?q?=20cd=20=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot_config/fish/config.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dot_config/fish/config.fish b/dot_config/fish/config.fish index 5e7adce..c11e9a8 100644 --- a/dot_config/fish/config.fish +++ b/dot_config/fish/config.fish @@ -14,10 +14,12 @@ if status is-interactive test "$cat_cmd" = "batcat"; and abbr bat batcat test "$find_cmd" = "fdfind"; and abbr fd fdfind - # 使用 --cmd=cd:让 cd 也具备 zoxide 的跳转能力(交互式对应 cdi) - type -q zoxide; and zoxide init --cmd=cd fish | source + # 使用 zoxide init 添加 z 和 zi 命令 + type -q zoxide; and zoxide init fish | source # 命令缩写配置 + type -q z; and abbr cd z + type -q zi; and abbr cdi zi test -n "$ls_cmd"; and abbr ls $ls_cmd test -n "$ls_cmd"; and abbr ll "$ls_cmd -l" test -n "$ls_cmd"; and abbr la "$ls_cmd -a"