Skip to content

Commit 9814b68

Browse files
committed
2 parents cf1e52c + 12695ef commit 9814b68

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

shell/shared.d/aliases.sh

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,4 @@ export HISTSIZE=10000
101101
export 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

shell/shared.d/zz-prompt.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,14 @@ if command -v starship &> /dev/null; then
66
eval "$(starship init bash)"
77
fi
88
fi
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

0 commit comments

Comments
 (0)