-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
26 lines (19 loc) · 842 Bytes
/
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
sudo apt update -y
sudo apt upgrade -y
sudo apt install -y zsh curl git zip unzip
GIT_CONFIG_TXT="$HOME/.dotfiles/git_config.txt"
GIT_CONFIG="$HOME/.gitconfig"
email=$(grep 'email' "$GIT_CONFIG_TXT" | awk -F " = " '{print $2}')
name=$(grep 'name' "$GIT_CONFIG_TXT" | awk -F " = " '{print $2}')
git config --file "$GIT_CONFIG" user.email "$email"
git config --file "$GIT_CONFIG" user.name "$name"
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Install NerdFont JetBrainsMono
curl -Lo "JetBrainsMono.zip" https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/JetBrainsMono.zip
mkdir -p ~/.fonts
unzip JetBrainsMono.zip -d ~/.fonts
fc-cache -fv
ln -s ~/.dotfiles/.bashrc ~/.bashrc
ln -s ~/.dotfiles/.zshrc ~/.zshrc
ln -s ~/.dotfiles/.fonts ~/.fonts