changing update script for new setup script.
This commit is contained in:
parent
e5e87e396b
commit
23b791982d
37
envupdate.sh
37
envupdate.sh
|
@ -9,40 +9,7 @@ printf '%s\n' "$@" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
cd
|
cd ~/dev/dotfiles
|
||||||
|
git pull
|
||||||
# zsh dir
|
|
||||||
|
|
||||||
if [[ -d ~/dev/dotfiles ]]; then
|
|
||||||
cd ~/dev/dotfiles
|
|
||||||
git pull
|
|
||||||
ln -s ~/dev/dotfiles/.zsh ~/
|
|
||||||
else
|
|
||||||
if [[ -d ~/.zsh ]]; then
|
|
||||||
rm -r ~/.zsh
|
|
||||||
else
|
|
||||||
printf '%s\n' "No .zsh dir exists."
|
|
||||||
fi
|
|
||||||
mkdir ~/dev
|
|
||||||
cd ~/dev
|
|
||||||
git clone https://github.com/staticsafe/dotfiles.git
|
|
||||||
ln -s ~/dev/dotfiles/.zsh ~/
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Update all the conf files here
|
|
||||||
printf '%s\n' "Updating dotfiles now!"
|
|
||||||
wget --no-check-certificate -O .zshrc https://raw.github.com/staticsafe/dotfiles/master/.zshrc || die 'Download failed!'
|
|
||||||
wget --no-check-certificate -O .vimrc https://raw.github.com/staticsafe/dotfiles/master/.vimrc || die 'Download failed!'
|
|
||||||
wget --no-check-certificate -O .tmux.conf https://raw.github.com/staticsafe/dotfiles/master/.tmux.conf || die 'Download failed!'
|
|
||||||
wget --no-check-certificate -O .conkyrc https://raw.github.com/staticsafe/dotfiles/master/.conkyrc || die 'Download failed!'
|
|
||||||
|
|
||||||
# vim dir
|
|
||||||
rm -r ~/.vim
|
|
||||||
wget -O vimdir.tar.bz2 http://dl.dropbox.com/u/2888062/vimdir.tar.bz2 || die 'Download failed!'
|
|
||||||
tar xjvf vimdir.tar.bz2
|
|
||||||
|
|
||||||
|
|
||||||
# cleanup
|
|
||||||
rm ~/vimdir.tar.bz2
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue