更新 fish 配置,重新使用 zoxide --cmd 参数

This commit is contained in:
2026-04-04 18:11:47 +08:00
parent 01cd8eff49
commit cd1c59f021

View File

@@ -14,12 +14,10 @@ if status is-interactive
test "$cat_cmd" = "batcat"; and abbr bat batcat test "$cat_cmd" = "batcat"; and abbr bat batcat
test "$find_cmd" = "fdfind"; and abbr fd fdfind test "$find_cmd" = "fdfind"; and abbr fd fdfind
# 使用 zoxide init 添加 zzi 命令 # 使用 zoxide init 添加 cdcdi 命令
type -q zoxide; and zoxide init fish | source 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 ls $ls_cmd
test -n "$ls_cmd"; and abbr ll "$ls_cmd -l" test -n "$ls_cmd"; and abbr ll "$ls_cmd -l"
test -n "$ls_cmd"; and abbr la "$ls_cmd -a" test -n "$ls_cmd"; and abbr la "$ls_cmd -a"