Skip to content

Instantly share code, notes, and snippets.

@ryosan-470
Last active August 29, 2015 13:56
Show Gist options
  • Save ryosan-470/9053026 to your computer and use it in GitHub Desktop.
Save ryosan-470/9053026 to your computer and use it in GitHub Desktop.
複数のemacs.dを切り替えるよっ! 超限定的だけどねw
#!/bin/bash
OLD_CONF="$HOME/.dotconfig/dotemacs"
REPO="$HOME/emacs"
TARGET_DIR="$HOME/.emacs.d"
echo "Switch repo to .emacs.d link"
echo "Choose switch to repo."
echo "1:${REPO}"
echo "2:${OLD_CONF}"
read val
case $val in
1)
ln -snf ${REPO} ${TARGET_DIR} ;;
2)
ln -snf ${OLD_CONF} ${TARGET_DIR} ;;
*)
echo "Input correct number";;
esac
ls -la ${TARGET_DIR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment