Update init.sh
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
#!bin/sh
|
#!bin/sh
|
||||||
#git clone https://github.com/Laily123/.dotfile.git ~/.dotfile
|
#git clone https://github.com/hilaily/.dotfile.git ~/.dotfile
|
||||||
export ZSH=$HOME/.oh-my-zsh
|
|
||||||
|
# 判断 zsh 是否安装
|
||||||
#sudo yum update && sudo yum -y install zsh
|
#sudo yum update && sudo yum -y install zsh
|
||||||
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
|
|
||||||
|
# 判断 oh-my-zsh 是否安装
|
||||||
|
if [ ! -d "$HOME/.oh-my-zsh" ];then
|
||||||
|
export ZSH=$HOME/.oh-my-zsh
|
||||||
|
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
|
||||||
|
fi
|
||||||
ln -sf ~/.dotfile/.zshrc ~/
|
ln -sf ~/.dotfile/.zshrc ~/
|
||||||
ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/
|
ln -sf ~/.dotfile/laily.zsh-theme ~/.oh-my-zsh/themes/
|
||||||
ln -sf ~/.dotfile/.tmux.conf ~/
|
ln -sf ~/.dotfile/.tmux.conf ~/
|
||||||
ln -sf ~/.dotfile/.gitconfig ~/.gitconfig
|
ln -sf ~/.dotfile/.gitconfig ~/.gitconfig
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user