2017-06-18 03:32:05 +02:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
2018-04-23 21:20:26 +02:00
|
|
|
SCRIPT_DIR="${HOME}/dotfiles/emacs"
|
|
|
|
EMACS_FUNC_DIR="${HOME}/.emacs.d"
|
2017-07-01 22:46:46 +02:00
|
|
|
|
|
|
|
for source in $(find $SCRIPT_DIR -type f -name '*.el'); do
|
|
|
|
filename=$(basename $source)
|
|
|
|
target="${EMACS_FUNC_DIR}/${filename}"
|
|
|
|
|
|
|
|
if [ ! -L $target ]; then
|
|
|
|
echo -n "Creating symlink for ${filename} ... " && \
|
|
|
|
ln -s $source $EMACS_FUNC_DIR && \
|
|
|
|
echo "Done."
|
|
|
|
else
|
|
|
|
echo "${filename} is already properly symlinked."
|
|
|
|
fi
|
|
|
|
|
|
|
|
done
|