-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·34 lines (21 loc) · 854 Bytes
/
setup.sh
File metadata and controls
executable file
·34 lines (21 loc) · 854 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
33
34
#!/bin/bash
ANTIGEN='git clone https://github.com/zsh-users/antigen ~/.antigen/antigen'
OMZ="$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
TPM='git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'
PYENV='curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash'
ASDF='git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.7'
confirmation() {
# $1 question
# $2 command to eval
echo -n "$1 [Y/n]"
local input
read input
if [[ "$input" == "Y" || "$input" == "y" || "$input" == '' ]]; then
eval "$2"
fi
}
confirmation "Install OH MY ZSH?" "$OMZ"
confirmation "Install Antigen?" "$ANTIGEN"
confirmation "Install Tmux Plugin Manager?" "$TPM"
# confirmation "Install pyenv?" "$PYENV"
confirmation "Install asdf?" "$ASDF"