Created
May 16, 2014 14:26
-
-
Save to4iki/7723df137e287c01a6b8 to your computer and use it in GitHub Desktop.
create symbolic link scripts
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
| # ------------------------------ | |
| # symlink | |
| # ------------------------------ | |
| # .oh-my-zsh-custom/ | |
| # .gitconfig | |
| # .jshintrc | |
| # .pryrc | |
| # .tigrc | |
| # .tmux.conf | |
| # .vimrc | |
| # .zshenv | |
| # .zshrc | |
| cd $(dirname $0) | |
| for dotfile in .?* | |
| do | |
| if [ $dotfile != '..' ] && | |
| [ $dotfile != '.lib' ] && | |
| [ $dotfile != '.git' ] && | |
| [ $dotfile != '.gitignore' ] | |
| then | |
| ln -Fis "$PWD/$dotfile" $HOME | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment