diff --git a/dot_config/fish/config.fish b/dot_config/fish/config.fish index bba02d7..f0fd699 100644 --- a/dot_config/fish/config.fish +++ b/dot_config/fish/config.fish @@ -26,6 +26,15 @@ if status is-interactive # 使用 --cmd=cd:让 cd 也具备 zoxide 的跳转能力(交互式对应 cdi) type -q zoxide; and zoxide init --cmd=cd fish | source + # ========= 编辑器/查看器(优先 vim,否则 vi)========= + if type -q vim + set -gx EDITOR vim + set -gx VISUAL vim + else if type -q vi + set -gx EDITOR vi + set -gx VISUAL vi + end + # ========= fastfetch:启动信息显示 ========= type -q fastfetch; and fastfetch end