#!/bin/bash # places dot symlinks in $HOME to point to the files in this directory, # also places a symlink from ~/.local/bin/ to local/bin in this directory cd $(dirname $0) for i in $(find -maxdepth 1 -type f | grep -v $(basename $0)) ; do ln -s ${PWD/$HOME\//}/$i $HOME/.${i#./} done # extra symlinks ln -s "../${PWD/$HOME\//}/local/bin" "$HOME/.local/"