File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,18 +101,4 @@ export HISTSIZE=10000
101101export HISTFILESIZE=20000
102102
103103
104- # ## 7. 🚀 现代 CLI 工具 (Modern CLI Tools)
105-
106- # zoxide (更好的 cd)
107- if command -v zoxide & > /dev/null; then
108- if [ -n " $ZSH_VERSION " ]; then
109- eval " $( zoxide init zsh) "
110- else
111- eval " $( zoxide init bash) "
112- fi
113- alias zq=' zoxide query'
114- alias za=' zoxide add'
115- alias zr=' zoxide remove'
116- fi
117-
118104
Original file line number Diff line number Diff line change @@ -6,3 +6,14 @@ if command -v starship &> /dev/null; then
66 eval " $( starship init bash) "
77 fi
88fi
9+
10+ if command -v zoxide & > /dev/null; then
11+ if [ -n " $ZSH_VERSION " ]; then
12+ eval " $( zoxide init zsh) "
13+ else
14+ eval " $( zoxide init bash) "
15+ fi
16+ alias zq=' zoxide query'
17+ alias za=' zoxide add'
18+ alias zr=' zoxide remove'
19+ fi
You can’t perform that action at this time.
0 commit comments