-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_setup.sh
More file actions
executable file
·48 lines (33 loc) · 1.39 KB
/
Copy pathmake_setup.sh
File metadata and controls
executable file
·48 lines (33 loc) · 1.39 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
#!/bin/bash
LINUXCONF="$HOME/.linuxconf"
# check if directory exists
if [ ! -d "$LINUXCONF" ]; then
sudo apt update
sudo apt install --yes \
vim \
git \
build-essential \
tmux \
zsh
if [ ! -d "$HOME/.oh-my-zsh" ]; then
sh -c "RUNZSH=no $(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
fi
chsh -s "$(command -v zsh)" "$USER"
[ -d ~/.vim/bundle/Vundle.vim ] || git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
[ -d ./gradle-completion ] || git clone https://github.com/gradle/gradle-completion.git
[ -d ~/.zsh/conda-zsh-completion ] || git clone https://github.com/esc/conda-zsh-completion ~/.zsh/conda-zsh-completion
[ -d ~/.tmux/kube-tmux ] || git clone https://github.com/jonmosco/kube-tmux.git ~/.tmux/kube-tmux
mkdir -p ~/.vim/colors
wget https://raw.githubusercontent.com/blueshirts/darcula/master/colors/darcula.vim -O ~/.vim/colors/darcula.vim
# kubectl
KUBECTL_ARCH=$(dpkg --print-architecture)
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/${KUBECTL_ARCH}/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
echo cloning github.com/walhava/linuxconf to "$LINUXCONF"
git clone https://github.com/walhava/linuxconf.git "$LINUXCONF"
else
echo updating linux conf
fi
cd "$LINUXCONF" || exit 1
git pull
./update_linux_conf.sh