Last active
August 29, 2015 13:56
-
-
Save ryosan-470/9053026 to your computer and use it in GitHub Desktop.
複数のemacs.dを切り替えるよっ! 超限定的だけどねw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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