/
install.sh
executable file
·37 lines (28 loc) · 1.18 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
#!/bin/bash
echo "Symlinking your dotfiles"
mv dotfiles .dotfiles
cd ~/
ln -sf .dotfiles/.tmux.conf
ln -sf .dotfiles/.gitconfig
ln -sf .dotfiles/.bashrc
ln -sf .dotfiles/.zshrc
cd ~/.dotfiles
if [ ! -d "$HOME/.dotfiles/.oh-my-zsh" ]; then
echo "Installing oh-my-zsh"
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
ZSH="$HOME/.dotfiles/.oh-my-zsh" sh install.sh
exec zsh
fi
if [ ! -d "$HOME/.dotfiles/.oh-my-zsh/custom/themes/powerlevel10k" ]; then
echo "Downloading powerlevel10k"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $HOME/.dotfiles/.oh-my-zsh/custom/themes/powerlevel10k
fi
if [ ! -d "$HOME/.dotfiles/.oh-my-zsh/custom/plugins/zsh-autosuggestions" ]; then
echo "Downloading zsh-autosuggestions"
git clone https://github.com/zsh-users/zsh-autosuggestions.git $HOME/.dotfiles/.oh-my-zsh/custom/plugins/zsh-autosuggestions
fi
if [ ! -d "$HOME/.dotfiles/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting" ]; then
echo "Downloading zsh-syntax-highlighting"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.dotfiles/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
fi
echo "Done."