summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2011-11-24 17:35:44 +0100
committerSebastian Reichel <sre@ring0.de>2011-11-24 17:35:44 +0100
commit6470670aa050e6f73014f3ef12bc8488ff42e580 (patch)
tree02852c96d2c9330be7a16ec52dc0555a336c24c8
parentdac2c6ee79dc140ff0d4b43bd94c47cc6b3d163e (diff)
downloadzsh-config-6470670aa050e6f73014f3ef12bc8488ff42e580.tar.bz2
add tinyos pwd profile
-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"