1 2 3 4 5 6 7 8 9
#!/bin/bash # Symlink dotfiles to ~ for file in dotfiles/*; do target=`realpath $file` link_name=~/.`basename $file` ln -fvs $target $link_name done