summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-05-14 03:50:51 +0200
committerSebastian Reichel <sre@ring0.de>2012-05-14 03:50:51 +0200
commitfd4bb8b38cf01eca73710f8c20fa07f88701a957 (patch)
treebab4a4218fd31e3617fcc5bf87edee3ac70bbba6
parent31c85791cef588393fb2efa6eadabdca68d0f671 (diff)
downloadzsh-config-fd4bb8b38cf01eca73710f8c20fa07f88701a957.tar.bz2
add 2nd tinyos profile
-rw-r--r--zshrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index 12dcb7e..c5bddef 100644
--- a/zshrc
+++ b/zshrc
@@ -146,6 +146,8 @@ zstyle ':vcs_info:*' enable bzr git hg svn
# tinyos directory specific configuration
zstyle ':chpwd:profiles:/home/sre/src/tinyos(|/|/*)' profile tinyos
+zstyle ':chpwd:profiles:/home/sre/src/tinyos-new(|/|/*)' profile tinyos_new
+zstyle ':chpwd:profiles:/home/sre/uni/bachelor/ZEDDS(|/|/*)' profile tinyos_new
chpwd_profile_tinyos() {
[[ ${profile} == ${CHPWD_PROFILE} ]] && return 1
@@ -156,6 +158,15 @@ chpwd_profile_tinyos() {
export MAKERULES="$TOSROOT/support/make/Makerules"
}
+chpwd_profile_tinyos_new() {
+ [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1
+ print "chpwd(): Switching to profile: $profile"
+
+ export TOSROOT="/home/sre/src/tinyos-new"
+ export TOSDIR="$TOSROOT/tos"
+ export MAKERULES="$TOSROOT/support/make/Makerules"
+}
+
chpwd_profile_default() {
[[ ${profile} == ${CHPWD_PROFILE} ]] && return 1
print "chpwd(): Switching to profile: $profile"