-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup
executable file
·35 lines (29 loc) · 848 Bytes
/
setup
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
#!/usr/bin/env bash
set -Eeuxo pipefail
PWD=$(pwd)
rm -rf ~/.bash_profile
rm -rf ~/.bashrc
rm -rf ~/.config/git/config
rm -rf ~/.config/git/ignore
rm -rf ~/.config/nvim
rm -rf ~/.ctags.d
rm -rf ~/.editrc
rm -rf ~/.inputrc
rm -rf ~/.tmux.conf
rm -rf ~/.tmux/plugins/tpm
rm -rf ~/.vimrc
mkdir -p ~/.config/git
mkdir -p ~/.ctags.d
mkdir -p ~/.tmux/plugins
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
ln -s "${PWD}/bash_profile" ~/.bash_profile
ln -s "${PWD}/bashrc" ~/.bashrc
ln -s "${PWD}/editrc" ~/.editrc
ln -s "${PWD}/gitconfig" ~/.config/git/config
ln -s "${PWD}/gitignore" ~/.config/git/ignore
ln -s "${PWD}/gitignore" ~/.gitignore
ln -s "${PWD}/inputrc" ~/.inputrc
ln -s "${PWD}/main.ctags" ~/.ctags.d/main.ctags
ln -s "${PWD}/nvim" ~/.config/nvim
ln -s "${PWD}/tmux.conf" ~/.tmux.conf
ln -s "${PWD}/vimrc" ~/.vimrc