-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·33 lines (26 loc) · 926 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
27
28
29
30
31
32
33
#!/usr/bin/env bash
set -e
CONFIG_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# setup alacritty
[ -d ~/.config/alacritty ] && rm -rf ~/.config/alacritty
[ -L ~/.config/alacritty ] && rm ~/.config/alacritty
ln -s $CONFIG_DIR/alacritty ~/.config/alacritty
# setup zshrc
[ -f ~/.zshrc ] && rm ~/.zshrc
[ -L ~/.zshrc ] && rm ~/.zshrc
ln -s $CONFIG_DIR/zshrc ~/.zshrc
[ -d ~/.zsh ] && rm -rf ~/.zsh
[ -L ~/.zsh ] && rm ~/.zsh
ln -s $CONFIG_DIR/zsh ~/.zsh
# setup tmux
[ -f ~/.tmux.conf ] && rm ~/.tmux.conf
[ -L ~/.tmux.conf ] && rm ~/.tmux.conf
ln -s $CONFIG_DIR/tmux.conf ~/.tmux.conf
[ -d ~/.tmux ] && rm -rf ~/.tmux
[ -L ~/.tmux ] && rm ~/.tmux
ln -s $CONFIG_DIR/tmux ~/.tmux
# setup starship
[ -f ~/.config/starship.toml ] && rm ~/.config/starship.toml
[ -L ~/.config/starship.toml ] && rm ~/.config/starship.toml
mkdir -p ~/.config && ln -s $CONFIG_DIR/starship.toml ~/.config/starship.toml
# setup neovim