-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·34 lines (26 loc) · 1.12 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·34 lines (26 loc) · 1.12 KB
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
#!/bin/bash
SCRIPT_DIR="${HOME}/projects/dotfiles"
# Vim setup
[ -d "$HOME/.vim" ] || mkdir ~/.vim
[ -e "$HOME/.vimrc" ] || ln -s "$SCRIPT_DIR/.vimrc" ~/.vimrc
# Tmux setup
[ -e "$HOME/.tmux.conf" ] || ln -s "$SCRIPT_DIR/.tmux.conf" ~/.tmux.conf
# Zsh setup
[ -e "$HOME/.zshrc" ] || ln -s "$SCRIPT_DIR/.zshrc" ~/.zshrc
if [ ! -d "$HOME/.antigen" ]
then
mkdir ~/.antigen
curl -L git.io/antigen > ~/.antigen/antigen.zsh
fi
[ -e "$HOME/bin" ] || mkdir -p "$HOME/bin"
[ -e "$HOME/bin/starship" ] || curl -sS https://starship.rs/install.sh | sh -s -- --bin-dir "$HOME/bin"
[ -e "${HOME}/.config/starship.toml" ] || ln -s ${SCRIPT_DIR}/starship.toml ~/.config/starship.toml
# NeoVim setup
[ -e "$HOME/.vim/init.vim" ] || ln -s "$SCRIPT_DIR/.vimrc" ~/.vim/init.vim
[ -d "$HOME/.config/nvim" ] || ln -s ~/.vim ~/.config/nvim
# Alacritty setup
if [ ! -d "$HOME/.config/alacritty" ]; then
mkdir -p "$HOME/.config/alacritty/themes"
git clone https://github.com/alacritty/alacritty-theme ~/.config/alacritty/themes
fi
[ -e "$HOME/.config/alacritty/alacritty.toml" ] || ln -s "$SCRIPT_DIR/alacritty.toml" ~/.config/alacritty/alacritty.toml