-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·34 lines (25 loc) · 1.35 KB
/
setup.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
#!/bin/sh
# install oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# link config files
ln -sf ~/dotfiles/.zshrc ~/.zshrc
ln -sf ~/dotfiles/.vimrc ~/.vimrc
source ~/.zshrc
# install packages
if ! command -v rg &> /dev/null; then
sudo apt-get install -y ripgrep
fi
if ! command -v fzf &> /dev/null; then
sudo apt-get install -y fzf
fi
# install oh my zsh plugins
git clone https://github.com/MichaelAquilina/zsh-you-should-use.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/you-should-use
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/buzuloiu/zsh-github-folders ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-github-folders
git clone https://github.com/TamCore/autoupdate-oh-my-zsh-plugins ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/autoupdate
# install comic sans font
mkdir -p ~/.fonts
curl -SsfLo ~/.fonts/Comic-Shanns.ttf 'https://github.com/shannpersand/comic-shanns/blob/b98eee0894464de98754d6c89ffdfb8c29ce9e45/v2/comic%20shanns%202.ttf'
fc-cache -f -v