forked from sreerajkksd/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-setup.sh
executable file
·59 lines (46 loc) · 1.99 KB
/
post-setup.sh
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
52
53
54
55
56
57
58
59
#!/bin/sh
echo "Symlinking state dir..."
mkdir -p $HOME/.local/state/dotstow
ln -s $HOME/.dotfiles $HOME/.local/state/dotstow/dotfiles
echo 'Setting up bash fzf...'
git clone -q --depth 1 https://github.com/junegunn/fzf.git ~/.fzf || true; ~/.fzf/install;
echo 'Setting up bash fasd...'
git clone -q --depth 1 https://github.com/clvv/fasd.git ~/.fasd || true
echo 'Setting up Vim Plug...'
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo 'Setting up Tmux configuration...'
git clone https://github.com/jcchikikomori/.tmux.git ~/.tmux || true
cd .tmux && git reset --hard fd1bbb56148101f4b286ddafd98f2ac2dcd69cd8 && ..
ln -s -f .tmux/.tmux.conf ~/.tmux.conf
# cp -f .tmux/.tmux.conf.local ~/.
echo 'Setting up Tmux TPM...'
git clone -q --depth 1 https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm || true
echo 'Setting up Starship prompt...'
curl -sS https://starship.rs/install.sh | sh -s -- -y
echo 'Setting up Antigen...'
curl -L https://git.io/antigen > $HOME/antigen.zsh
read -p "Do you want to install python with pyenv? (y/n): " choice
if [ "$choice" = "y" ] || [ "$choice" = "Y" ]; then
echo 'Installing pyenv...'
curl https://pyenv.run | bash
else
echo 'Skipped. You can install python manually on pyenv website!'
fi
read -p "Do you want to install SDKMAN? (y/n): " choice
if [ "$choice" = "y" ] || [ "$choice" = "Y" ]; then
echo 'Installing SDKMAN...'
curl -s "https://get.sdkman.io" | bash
else
echo 'Skipped. You can install SDKMAN manually on their website!'
fi
read -p "Do you want to install NodeJS with NVM? (y/n): " choice
if [ "$choice" = "y" ] || [ "$choice" = "Y" ]; then
echo 'Installing NVM...'
./nodejs.sh
else
echo 'Skipped. You can execute nodejs.sh later if you wanted to.'
fi
echo 'Installing VIM Plugins...'
vim +'PlugInstall --sync' +qall > /dev/null 2>&1
echo 'Setting up oh-my-zsh'
curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh -s -- --unattended