-
Notifications
You must be signed in to change notification settings - Fork 1
/
cli.sh
executable file
·71 lines (66 loc) · 1.4 KB
/
cli.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
60
61
62
63
64
65
66
67
68
69
70
#! /usr/bin/env bash
sudo='True'
# https://stackoverflow.com/a/8574392
elementIn () {
local e match="$1"
shift
for e; do [[ "$e" == "$match" ]] && return 0; done
return 1
}
if elementIn "zsh" "$@"; then
echo "Setting zsh on"
zsh='True'
oh_my_zsh='True'
materialshell='True'
zsh_autosuggestions='True'
zsh_syntax_highlighting='True'
zshrc='True'
fi
if elementIn "python" "$@"; then
echo "Setting python on"
pyenv='True'
poetry='True'
fi
if elementIn "rust" "$@"; then
rust='True'
fi
if elementIn "anaconda" "$@"; then
echo "Setting anaconda on"
anaconda3='True'
fi
if elementIn "miniconda" "$@"; then
echo "Setting miniconda on"
miniconda3='True'
fi
if elementIn "utilities" "$@"; then
echo "Setting utilities on"
micro='True'
fd='True'
jq='True'
ag='True'
ripgrep='True'
tmux='True'
oh_my_tmux='True'
# Comment out because rarely used and prevents non-interactive install
# fuzzy_file_finder='True'
xclip='True'
xsel='True'
smem='True'
tree='True'
gtop='True'
shellcheck='True'
bat='True'
awscli='True'
fi
if elementIn 'docker' "$@"; then
echo "Setting docker on"
docker='True'
docker_compose='True'
fi
if elementIn 'jupyter' "$@"; then
echo "Setting jupyter on"
jupyter_notebook_remote='True'
bash_kernel='True'
ijavascript='True'
fi
source linux_install.sh