X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=makelinks.sh;h=90ba16f333dc244f981d6f4eadd3d1db55e3f7b3;hb=33f978f402c0b4138fab453d94c4eab6ff6a523c;hp=cda25466675c4ac40df7de98cc5c96be19048908;hpb=767cff100d1a86bfbb4976548af9798339e1df62;p=max%2Fdotfiles.git diff --git a/makelinks.sh b/makelinks.sh index cda2546..90ba16f 100755 --- a/makelinks.sh +++ b/makelinks.sh @@ -8,7 +8,8 @@ dir=~/etc/dotfiles olddir=~/etc/dotfiles.bak -files="vimrc bashrc Xresources gitconfig zprofile zshenv zshrc xinitrc" +files="vimrc bashrc bash_profile Xresources gitconfig gitignore xinitrc" +directories="mutt" ########## @@ -22,6 +23,14 @@ cd $dir #then create symlinks from the homedir to any files in the #~/dotfiles directory specified in $files for file in $files; do - mv ~/.$file $olddir/ - ln -s $dir/$file ~/.$file + mv ~/.$file $olddir/ + ln -s $dir/$file ~/.$file done + +# For every directory execute the install file. +for directory in $directories; do + mkdir -p ~/.$directory + source ./$directory/makelinks.sh +done + +