-
Notifications
You must be signed in to change notification settings - Fork 7
/
init.sh
executable file
·35 lines (34 loc) · 1.32 KB
/
init.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
34
35
mv ~/.bash_aliases ~/.bash_aliases.old
mv ~/.bash_profile ~/.bash_profile.old
mv ~/.bashrc ~/.bashrc.old
mv ~/.gitconfig ~/.gitconfig.old
mv ~/.gitignore ~/.gitignore.old
mv ~/.profile ~/.profile.old
mv ~/.inputrc ~/.inputrc.old
mv ~/.tern-project ~/.tern-project.old
mv ~/.dircolors ~/.dircolors.old
mv ~/.eslintrc.js ~/.eslintrc.js.old
mv ~/.tmux.conf.local ~/.tmux.conf.local.old
printf " renamed already present files with '.old' postfix\n"
ln -s $PWD/.bashrc ~/.bashrc
printf " Symlink created to .bashrc\n"
ln -s $PWD/.bash_aliases ~/.bash_aliases
printf " Symlink created to .bash_aliases\n"
ln -s $PWD/.bash_profile ~/.bash_profile
printf " Symlink created to .bash_profile\n"
ln -s $PWD/.gitconfig ~/.gitconfig
printf " Symlink created to .gitconfig\n"
ln -s $PWD/.gitignore ~/.gitignore
printf " Symlink created to .gitignore\n"
ln -s $PWD/.profile ~/.profile
printf " Symlink created to .profile\n"
ln -s $PWD/.inputrc ~/.inputrc
printf " Symlink created to .inputrc\n"
ln -s $PWD/.tern-project ~/.tern-project
printf " Symlink created to .tern-project\n"
ln -s $PWD/.dircolors ~/.dircolors
printf " Symlink created to .dircolors\n"
ln -s $PWD/.eslintrc.js ~/.eslintrc.js
printf " Symlink created to .eslintrc.js\n\n"
ln -s $PWD/.tmux.conf ~/.tmux.conf.local
printf " Symlink created to .tmux.conf.local\n"