dotfiles/install.sh

40 lines
820 B
Bash
Raw Normal View History

2013-06-01 23:07:50 +00:00
#!/bin/bash
2013-06-01 23:14:47 +00:00
WAI=`pwd`
2013-06-02 19:31:03 +00:00
#simple files
2013-06-01 23:14:47 +00:00
cd ~/
ln -s $WAI/bashrc ./.bashrc
2013-06-01 23:19:43 +00:00
ln -s $WAI/vimrc ./.vimrc
ln -s $WAI/gitconfig ./.gitconfig
2013-06-02 11:02:37 +00:00
ln -s $WAI/xinitrc ./.xinitrc
2013-06-02 19:31:03 +00:00
#SSH
2013-06-02 11:02:37 +00:00
if [ ! -d "~/.ssh" ]; then mkdir .ssh/; fi;
cd ~/.ssh
ln -s $WAI/ssh/config ./
2013-06-02 19:31:03 +00:00
#VIM
2013-06-02 12:37:54 +00:00
if [ ! -d "~/.vim" ]; then mkdir ~/.vim/; fi;
cd ~/.vim
if [ ! -d "./colors" ]; then mkdir colors; fi;
cd colors
ln -s $WAI/vim/colors/wombat256modv1.vim ./wombat256modv1.vim
2013-06-02 19:31:03 +00:00
cd ..
if [ ! -d "./skeletons" ]; then mkdir skeletons; fi;
cd skeletons
for i in `ls $WAI/vim/skeletons`; do ln -s $WAI/vim/skeletons/$i ./$i; done
2013-06-04 16:43:31 +00:00
cd ~/Programmation
if [ ! -d "./Utils" ]; then mkdir Utils; fi;
cd ./Utils
ln -s $WAI/Utils/monitor.sh ./monitor.sh
ln -s $WAI/Utils/monitorOff.sh ./monitorOff.sh
ln -s $WAI/Utils/track.sh ./track.sh
ln -s $WAI/Utils/blink.sh ./blink.sh