dotfiles/install.sh
Frank Villaro-Dixon 2a630c952c vim things +mutt
2013-08-04 17:50:26 +02:00

68 lines
1.6 KiB
Bash
Executable file

#!/bin/bash
WAI=`pwd`
#simple files
cd ~/
ln -s $WAI/bashrc ./.bashrc
ln -s $WAI/vimrc ./.vimrc
ln -s $WAI/gitconfig ./.gitconfig
ln -s $WAI/xinitrc ./.xinitrc
ln -s $WAI/screenrc ./.screenrc
ln -s $WAI/octaverc ./.octaverc
ln -s $WAI/mailcap ./.mailcap
ln -s $WAI/chooseWP.sh ~/Pictures/wallpapers/chooseWP.sh
#SSH
if [ ! -d "~/.ssh" ]; then mkdir .ssh/; fi;
cd ~/.ssh
ln -s $WAI/ssh/config ./
#MUTT
if [ ! -d "~/.mutt" ]; then mkdir .mutt/; fi;
cd ~/.mutt
ln -s $WAI/mutt/muttrc ./
ln -s $WAI/mutt/killsig ./
ln -s $WAI/mutt/passwords.gpg ./
ln -s $WAI/mutt/crypto ./
ln -s $WAI/mutt/colors.test1 ./
ln -s $WAI/mutt/colors.test2 ./
#VIM
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
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
cd ..
if [ ! -d "./spell" ]; then mkdir spell; fi;
cd spell
for i in `ls $WAI/vim/spell`; do ln -s $WAI/vim/spell/$i ./$i; done
cd ..
if [ ! -d "./plugin" ]; then mkdir plugin; fi;
cd plugin
for i in `ls $WAI/vim/plugin`; do ln -s $WAI/vim/plugin/$i ./$i; done
cd ~
if [ -d "Programmation" ]; then mkdir Programmation; fi;
cd ~/Programmation
ln -s $WAI/git_auto_pull.sh ./git_auto_pull.sh
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
ln -s $WAI/Utils/octopus.sh ./octopus.sh