1. Ryan Wilcox
  2. dotfiles

Commits

Ryan Wilcox  committed 0111ce7

look for .zsh_config in any folder you CD into, exec same

  • Participants
  • Parent commits 6367c6d
  • Branches default

Comments (0)

Files changed (1)

File zshrc.sh

View file
 ### Added by the Heroku Toolbelt
 export PATH="/usr/local/heroku/bin:$PATH"
 
+# A really stupid idea most of the time
+# But ehh I'll assume I'm a responsible adult and haven't been hacked
+# on my developer machine
+# Source: http://www.refining-linux.org/archives/42/ZSH-Gem-8-Hook-function-chpwd/
+function chpwd() {
+    if [ -r $PWD/.zsh_config ]; then
+    	echo "executing $PWD/.zsh_config"
+        source $PWD/.zsh_config
+    fi
+}