diff --git a/init_root.sh b/init_root.sh index 8109b34..953591e 100755 --- a/init_root.sh +++ b/init_root.sh @@ -131,12 +131,14 @@ configure_zsh() { if [[ -z "$response" ]] || [[ $response =~ ^[Yy]$ ]]; then apt install zsh -y + + rm ~/.oh-my-zsh -r git_clone ohmyzsh/ohmyzsh ~/.oh-my-zsh RUNZSH=no ZSH=~/.oh-my-zsh $scriptdir/files/install-ohmyzsh.sh git_clone zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions git_clone zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/plugins/zsh-syntax-highlighting - git_clone paulirish/git-open ~/.oh-my-zsh/plugins/git-open + git_clone paulirish/git-open ~/.oh-my-zsh/plugins/git-open --norecursive apt install autojump -y cp $scriptdir/files/.zshrc ~/.zshrc @@ -151,11 +153,14 @@ configure_tmux() { if [[ -z "$response" ]] || [[ $response =~ ^[Yy]$ ]]; then apt install tmux -y + + rm ~/.tmux -r 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 git_clone tmux-plugins/tmux-prefix-highlight ~/.tmux/plugins/tmux-prefix-highlight git_clone seebi/tmux-colors-solarized ~/.tmux/plugins/tmux-colors-solarized + cp $scriptdir/files/.tmux.conf ~/.tmux.conf apt install xsel -y # 能够让 tmux 剪切板与 terminal 同步 fi diff --git a/init_sudo.sh b/init_sudo.sh index a0bedc2..f97bb58 100755 --- a/init_sudo.sh +++ b/init_sudo.sh @@ -137,12 +137,14 @@ configure_zsh() { if [[ -z "$response" ]] || [[ $response =~ ^[Yy]$ ]]; then sudo apt install zsh -y + + rm ~/.oh-my-zsh -r git_clone ohmyzsh/ohmyzsh ~/.oh-my-zsh RUNZSH=no ZSH=~/.oh-my-zsh $scriptdir/files/install-ohmyzsh.sh git_clone zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions git_clone zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/plugins/zsh-syntax-highlighting - git_clone paulirish/git-open ~/.oh-my-zsh/plugins/git-open + git_clone paulirish/git-open ~/.oh-my-zsh/plugins/git-open --norecursive sudo apt install autojump -y cp $scriptdir/files/.zshrc ~/.zshrc @@ -157,11 +159,14 @@ configure_tmux() { if [[ -z "$response" ]] || [[ $response =~ ^[Yy]$ ]]; then sudo apt install tmux -y + + rm ~/.tmux -r 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 git_clone tmux-plugins/tmux-prefix-highlight ~/.tmux/plugins/tmux-prefix-highlight git_clone seebi/tmux-colors-solarized ~/.tmux/plugins/tmux-colors-solarized + cp $scriptdir/files/.tmux.conf ~/.tmux.conf sudo apt install xsel -y # 能够让 tmux 剪切板与 terminal 同步 fi