-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall
executable file
·40 lines (31 loc) · 949 Bytes
/
install
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
35
36
37
38
39
40
#!/bin/sh
# Path to your dotfiles.
export DOTFILES=$HOME/.dotfiles
echo "Setting up your system..."
echo "Your dotfiles path: $DOTFILES"
# fish
rm -rf $HOME/.config/fish
mkdir -p $HOME/.config
ln -s $DOTFILES/fish $HOME/.config/fish
# Relink other software configs
# tmux
rm -rf $HOME/.tmux.conf
ln -s $DOTFILES/shell/tmux.conf $HOME/.tmux.conf
# nvim
rm -rf $HOME/.config/nvim
mkdir -p $HOME/.config
ln -s $DOTFILES/nvim $HOME/.config/nvim
# VIM config:
rm -f $HOME/.vimrc
ln -s $DOTFILES/vim/vimrc $HOME/.vimrc
# Install vim-plug for vim
if [ ! -f $DOTFILES/vim/vim/autoload/plug.vim ]; then
echo "Installing vim-plug for vim"
curl -fLo $DOTFILES/vim/vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +PlugInstall +qall
fi
# ghostty
rm -rf $HOME/.config/ghostty
mkdir -p $HOME/.config
ln -s $DOTFILES/ghostty $HOME/.config/ghostty
echo "Done! All set up, ready to be used!"