fix: 修复 macOS 上目录删除的参数顺序及存在性检查
This commit is contained in:
parent
24d180fd38
commit
8d6cc555eb
@ -161,7 +161,9 @@ configure_zsh() {
|
||||
if confirm_action "要配置 zsh 吗?" "Y"; then
|
||||
pkg_install zsh
|
||||
|
||||
rm ~/.oh-my-zsh -r
|
||||
if [ -d ~/.oh-my-zsh ]; then
|
||||
rm -r ~/.oh-my-zsh
|
||||
fi
|
||||
git_clone ohmyzsh/ohmyzsh ~/.oh-my-zsh
|
||||
RUNZSH=no ZSH=~/.oh-my-zsh $scriptdir/files/install-ohmyzsh.sh
|
||||
|
||||
@ -217,7 +219,9 @@ configure_tmux() {
|
||||
if confirm_action "要配置 tmux 吗?" "Y"; then
|
||||
pkg_install tmux || return $?
|
||||
|
||||
rm ~/.tmux -r
|
||||
if [ -d ~/.tmux ]; then
|
||||
rm -r ~/.tmux
|
||||
fi
|
||||
git_clone tmux-plugins/tpm ~/.tmux/plugins/tpm --norecursive
|
||||
git_clone tmux-plugins/tmux-sensible ~/.tmux/plugins/tmux-sensible
|
||||
git_clone tmux-plugins/tmux-yank ~/.tmux/plugins/tmux-yank
|
||||
|
||||
Loading…
Reference in New Issue
Block a user