Created
May 9, 2014 02:04
-
-
Save jiskanulo/8891c3ec24fa432b82be to your computer and use it in GitHub Desktop.
oh-my-zsh plugin for my env file loader
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
function import_setting() | |
{ | |
[ -f $1 ] && . $1 | |
} | |
for f in $HOME/.zsh.d/* ; do | |
import_setting $f | |
done | |
if [ $commands[brew] ]; then | |
for f in $HOME/.zsh.d/homebrew/* ; do | |
import_setting $f | |
done | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment