-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·34 lines (28 loc) · 999 Bytes
/
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
current_path=$(pwd)
echo $current_path
echo "Delete existing dotfiles..."
rm ~/.vimrc
rm ~/.vimrc.local
rm ~/.vimrc.bundles
rm ~/.tmux.conf
rm ~/.zshrc
rm -rf ~/.vim
rm -rf ~/.config/alacritty || true
rm -rf ~/.config/nvim || true
echo "Installing new dotfiles..."
ln -sf $current_path/tmux.conf ~/.tmux.conf
ln -sf $current_path/zshrc ~/.zshrc
echo "Install alacritty..."
mkdir -p ~/.config/alacritty/themes
git clone https://github.com/alacritty/alacritty-theme ~/.config/alacritty/themes
ln -fs ~/.config/alacritty/themes/themes/pencil_light.toml ~/.config/alacritty/_active.toml
ln -fs $current_path/alacritty.toml ~/.config/alacritty/alacritty.toml
echo "Install astronvim..."
git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim
rm -rf ~/.config/nvim/.git
echo "Installing git aliases..."
git config --global alias.cm commit
git config --global alias.d diff
git config --global alias.b branch
git config --global alias.co checkout
git config --global alias.st status