Improve bootstrap robustness and add safety checks

- Fix /tmp/yay conflict with rm -rf before clone
- Use script directory instead of current directory
- Add pipefail to error handling
- Add command existence checks for mise/zoxide in .zshrc
- Add HTTPS clone option in README
This commit is contained in:
2026-03-25 13:33:32 +08:00
parent 7d29bd6562
commit bbfa5bff1c
3 changed files with 15 additions and 9 deletions
+6 -2
View File
@@ -5,10 +5,14 @@ plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
# mise
eval "$(mise activate zsh)"
if command -v mise &> /dev/null; then
eval "$(mise activate zsh)"
fi
# zoxide
eval "$(zoxide init zsh)"
if command -v zoxide &> /dev/null; then
eval "$(zoxide init zsh)"
fi
# Aliases
alias ls='ls --color=auto'