25 lines
988 B
Bash
Executable File
25 lines
988 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ZSH=$HOME/.config/oh-my-zsh
|
|
echo 'Getting oh-my-zsh from gitee...'
|
|
# git clone https://gitee.com/mirrors/oh-my-zsh.git $ZSH
|
|
git clone https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git $ZSH
|
|
|
|
# echo 'Downloading powerlevel9k...'
|
|
# git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
|
|
|
|
# echo 'Getting powerlevel10k'
|
|
# git clone https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh}/themes/powerlevel10k
|
|
|
|
echo 'Getting zsh-highlighting...'
|
|
git clone https://gitee.com/mirrors/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$ZSH/custom}/plugins/zsh-syntax-highlighting
|
|
|
|
if [[ -f "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ]]; then
|
|
echo 'zsh-autosuggestions exists'
|
|
elif
|
|
echo 'Getting zsh-autosuggestions...'
|
|
git clone https://gitee.com/mirrors/zsh-autosuggestions.git ${ZSH_CUSTOM:-$ZSH/custom}/plugins/zsh-autosuggestions
|
|
fi
|
|
|
|
cp -f config/zsh/bracket.zsh-theme $ZSH/custom/themes/
|