Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added ability to read .zsh_config on cwd

  • Loading branch information...
commit e50715aafbdf79b727df94a47b6c4093bfb4d6ce 1 parent c92961f
Aleksey Maksimov authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 .zshrc
View
8 .zshrc
@@ -52,8 +52,16 @@ export PATH=/usr/local/bin:/usr/bin:/bin:/home/xleap/bin:/usr/local/sbin:/usr/sb
export GREP_COLORS="ms=01;31:mc=01;31:sl=:cx=:fn=33:ln=01;32:bn=32:se=36"
+export PYTHONPATH=~/src/adlt/deployment/framework/domain_build:~/src/adlt/deployment/framework/app_deploy:~/src/adlt/deployment/framework/domain_build/shared/scripts:~/src/adlt/deployment/framework/domain_build/shared:~/src/adlt/deployment/framework/shared
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
zstyle -e :urlglobber url-other-schema '[[ $words[1] == scp ]] && reply=("*") || reply=(http https ftp)'
+function source_config() {
+ if [ -r $PWD/.zsh_config ]; then
+ print "Sourcing $PWD/.zsh_config"
+ source $PWD/.zsh_config
+ fi
+}
+chpwd_functions=(${chpwd_functions[@]} "source_config")
Please sign in to comment.
Something went wrong with that request. Please try again.