forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·51 lines (46 loc) · 1.97 KB
/
bootstrap.sh
File metadata and controls
executable file
·51 lines (46 loc) · 1.97 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE}")";
git pull origin master;
function doIt() {
sudo apt install curl git
echo ----------- Installing zsh...
sudo apt install zsh
echo ----------- Installing zsh prezto...
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
echo ----------- Installing PowerLevel9k theme...
git clone https://github.com/bhilburn/powerlevel9k.git ~/.zprezto/modules/prompt/external/powerlevel9k
ln -fs ~/.zprezto/modules/prompt/external/powerlevel9k/powerlevel9k.zsh-theme ~/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup
echo ----------- Installing rbenv ...
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash
git clone https://github.com/ianheggie/rbenv-binstubs.git "~/.rbenv/plugins/rbenv-binstubs"
git clone https://github.com/ianheggie/rbenv-binstubs.git "$(rbenv root)/plugins/rbenv-binstubs"
echo ----------- Installing git-standup ...
curl -L https://raw.githubusercontent.com/kamranahmedse/git-standup/master/installer.sh | sudo sh
echo ----------- Installing postgres, redis, i3 ...
sudo add-apt-repository ppa:kgilmer/speed-ricer
sudo apt-get update
sudo apt install postgresql postgresql-contrib redis-server compton i3-gaps-wm
echo ----------- Setting pg user ...
sudo -u postgres createuser $USERNAME -s
sudo chsh -s $(which zsh)
echo ----------- Installing stow...
sudo apt install stow
stow bash \
compton \
git \
i3 \
zsh
echo Install powerline font https://github.com/bhilburn/powerlevel9k/wiki/Install-Instructions#step-2-install-a-powerline-font
echo Edit /etc/redis/redis.conf and add "supervised systemd" then run "sudo systemctl restart redis.service"
echo Reboot machine for changes to take place
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt;
else
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
doIt;
fi;
fi;
unset doIt;