1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash cd $(dirname $0) for i in $(ls -1 | grep -v $(basename $0)) ; do ln -s ${PWD/$HOME\//}/$i $HOME/.$i done # extra symlinks cd $HOME ln -s .bash_profile .bashrc