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"