Created
September 12, 2013 06:19
-
-
Save agilecreativity/6533590 to your computer and use it in GitHub Desktop.
Load custom scripts from the given directory for zsh or bash
This file contains 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
# Add to the end of your ~/.zshrc or ~/.bashrc | |
# Note: $ln -s ~/Dropbox/dotfiles/zsh/config/ ~/.zsh.d | |
if [ -d ~/.zsh.d ]; then | |
for i in ~/.zsh.d/*.sh; do | |
if [ -r $i ]; then | |
. $i | |
fi | |
done | |
unset i | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment