Created
May 3, 2012 16:10
-
-
Save flashingpumpkin/2586854 to your computer and use it in GitHub Desktop.
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 | |
| exclude='(.dotfiles/$|.git)' | |
| # Link files | |
| find ~/.dotfiles/ -type f -name ".*" -exec ln -s -f {} --target-directory=$HOME/ \; | |
| # Copy folders | |
| find ~/.dotfiles/ -maxdepth 1 -name ".*" -type d | grep -vE $exclude | xargs -I {} cp -v -r {} $HOME | |
| mkdir -p $HOME/bin/ | |
| ln -s -f ~/.dotfiles/bin/* --target-directory=$HOME/bin/ | |
| . "$HOME/.profile" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dotfiles repo post commit hook