diff options
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -142,6 +142,27 @@ zstyle ':vcs_info:*' formats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f ' zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' zstyle ':vcs_info:*' enable git cvs svn +# tinyos directory specific configuration +zstyle ':chpwd:profiles:/home/sre/src/tinyos(|/|/*)' profile tinyos + +chpwd_profile_tinyos() { + [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 + print "chpwd(): Switching to profile: $profile" + + export TOSROOT="/home/sre/src/tinyos" + export TOSDIR="$TOSROOT/tos" + export MAKERULES="$TOSROOT/support/make/Makerules" +} + +chpwd_profile_default() { + [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 + print "chpwd(): Switching to profile: $profile" + + unset TOSROOT + unset TOSDIR + unset MAKERULES +} + # export some variables export EMAIL="sre@ring0.de" export DEBEMAIL="sre@debian.org" |