summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zshrc21
1 files changed, 21 insertions, 0 deletions
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"