Skip to content

Instantly share code, notes, and snippets.

@agilecreativity
Created September 12, 2013 06:19
Show Gist options
  • Save agilecreativity/6533590 to your computer and use it in GitHub Desktop.
Save agilecreativity/6533590 to your computer and use it in GitHub Desktop.
Load custom scripts from the given directory for zsh or bash
# 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