-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·24 lines (19 loc) · 885 Bytes
/
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
#!/bin/bash
# Used for Github Codespaces
set -e
[ $UID -eq 0 ] && exec sudo -u codespace $0
echo "Setting up zsh"
sudo chsh -s /usr/bin/zsh $(whoami)
cp .zshrc ~
echo 'export SHELL=/usr/bin/zsh' >> ~/.zshrc
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
cp .p10k.zsh ~
echo "Installing tmux"
sudo apt-get update
sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y tmux perl
echo "Setting up tmux"
git clone --depth=1 https://github.com/gpakosz/.tmux ~/.tmux
ln -sf ~/.tmux/.tmux.conf ~/.tmux.conf
cp .tmux.conf.local ~