-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredeploy.sh
More file actions
32 lines (27 loc) · 790 Bytes
/
redeploy.sh
File metadata and controls
32 lines (27 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash -ex
# wget this script from github
DISTRO=$(awk -F= '/^NAME/{print $2}' /etc/os-release)
if [[ "$DISTRO" == '"Ubuntu"' ]]; then
# Debian
sudo apt-get update
sudo apt-get install -y zsh zsh-doc dos2unix curl inotify-tools
# TODO change to python git-up and stop installing ruby
#sudo gem install git-up
elif [[ "$DISTRO" == '"CentOS Linux"' ]]; then
sudo yum install -y zsh
fi
set +x
mkdir -p ~/bin
ln -s ~/configs/bin/* ~/bin
ln -s ~/configs/.gitconfig ~/
ln -s ~/configs/.vimrc ~/
ln -s ~/configs/.screenrc ~/
#ln -s ~/configs/.zshrc ~/
#ln -s ~/configs/.zshenv ~/
set -x
chsh -s $(which zsh)
exec zsh
# Get oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# install vim plugins
vim '+exit'