From 6470670aa050e6f73014f3ef12bc8488ff42e580 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Thu, 24 Nov 2011 17:35:44 +0100 Subject: add tinyos pwd profile --- zshrc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/zshrc b/zshrc index 469779a..567ac2c 100644 --- a/zshrc +++ b/zshrc @@ -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" -- cgit v1.2.3