-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·87 lines (67 loc) · 2.61 KB
/
install.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/sh
# This script is specifically for Codespaces
# Setup time
sudo ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
sudo dpkg-reconfigure --frontend noninteractive tzdata
# Install tools
sudo apt update
sudo apt install -y fzf tmux
mkdir -p $HOME/Tools
## Install Bat
curl -LO https://github.com/sharkdp/bat/releases/download/v0.23.0/bat_0.23.0_amd64.deb
sudo dpkg -i bat_0.23.0_amd64.deb
rm -f bat_0.23.0_amd64.deb
## Install ripgrep
curl -LO https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep_13.0.0_amd64.deb
sudo dpkg -i ripgrep_13.0.0_amd64.deb
rm -f ripgrep_13.0.0_amd64.deb
## Install forgit
git clone --depth=1 https://github.com/wfxr/forgit.git $HOME/Tools/forgit
## Install LSD
curl -LO https://github.com/Peltoche/lsd/releases/download/0.23.1/lsd_0.23.1_amd64.deb
sudo dpkg -i lsd_0.23.1_amd64.deb
rm -f lsd_0.23.1_amd64.deb
## Install fd
curl -LO https://github.com/sharkdp/fd/releases/download/v8.7.0/fd_8.7.0_amd64.deb
sudo dpkg -i fd_8.7.0_amd64.deb
rm -f fd_8.7.0_amd64.deb
# Install OMZ
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# Disable git dirty tracking
git config --add oh-my-zsh.hide-dirty 1
# Install p10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
cp .p10k.zsh $HOME/.p10k.zsh
# Copy tmux config
cp tmux/.tmux.conf $HOME/.tmux.conf
# Install TPM
mkdir -p $HOME/.tmux/plugins
git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm
mkdir -p $HOME/.tmux/resurrect
cp -r tmux/resurrect $HOME/.tmux/
# Copy ZSH config
cp codespaces/.zshrc $HOME/.zshrc
# Install kubectx
git clone https://github.com/ahmetb/kubectx $HOME/Tools/kubectx --depth=1
ln -s $HOME/Tools/kubectx/kubectx $HOME/.local/bin/kubectx
ln -s $HOME/Tools/kubectx/kubens $HOME/.local/bin/kubens
kubectl completion zsh > $HOME/.kubectl_completions.zsh
# Install K9s
curl -LO https://github.com/derailed/k9s/releases/download/v0.27.3/k9s_Linux_amd64.tar.gz
mkdir k9s
tar -xf k9s_Linux_amd64.tar.gz -C ./k9s
mv ./k9s/k9s $HOME/.local/bin/
rm -rf k9s
rm -f k9s_Linux_amd64.tar.gz
# Copy fonts
sudo mkdir -p /usr/share/fonts/opentype
sudo cp -r fonts/* /usr/share/fonts/opentype/
# Vim Setup
# Install vimplug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
mkdir -p $HOME/.vim/colors
cp vim/gruvbox.vim $HOME/.vim/colors/
cp vim/.vimrc $HOME/.vimrc
# Apt cleanup
sudo apt -y autoremove