- This script is used to set personal environment, including zsh, git, vim and linux sources.
sh -c "$(wget https://raw.githubusercontent.com/SuXY15/SuXYrc/master/suxy.sh -q -O -)"
-
install zsh first
-
install oh-my-zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -q -O -)"
-
install zsh plugins:
-
syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
-
autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
-
-
download suxyrc
wget https://raw.githubusercontent.com/SuXY15/SuXYrc/master/suxyrc -q -O ${HOME}/.suxyrc
-
add source in
~/.zshrc
source $HOME/.suxyrc source $ZSH/oh-my-zsh.sh
-
generate ssh-key if nessary
ssh-keygen -t rsa -C "[email protected]"
-
set github
git config --global user.name SuXY15 git config --global user.email [email protected] git config --global credential.helper store
-
set github socks port
git config --global http.https://github.com.proxy socks5://127.0.0.1:1086 git config --global https.https://github.com.proxy socks5://127.0.0.1:1086
- vim
wget "https://raw.githubusercontent.com/SuXY15/SuXYrc/master/vimrc" -O ~/.vimrc curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim vim +PlugInstall +qall
-
tuna
python -c "$(wget https://tuna.moe/oh-my-tuna/oh-my-tuna.py -q -O -)" --global