From cd1c59f021fe284460d60bc2b7fa66970cc9a61a Mon Sep 17 00:00:00 2001 From: Erystasius Date: Sat, 4 Apr 2026 18:11:47 +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=E9=87=8D=E6=96=B0=E4=BD=BF=E7=94=A8=20zoxide=20--cmd?= =?UTF-8?q?=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot_config/fish/config.fish | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dot_config/fish/config.fish b/dot_config/fish/config.fish index c11e9a8..87c47d9 100644 --- a/dot_config/fish/config.fish +++ b/dot_config/fish/config.fish @@ -14,12 +14,10 @@ if status is-interactive test "$cat_cmd" = "batcat"; and abbr bat batcat test "$find_cmd" = "fdfind"; and abbr fd fdfind - # 使用 zoxide init 添加 z 和 zi 命令 - type -q zoxide; and zoxide init fish | source + # 使用 zoxide init 添加 cd 和 cdi 命令 + type -q zoxide; and zoxide init --cmd cd 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"