From fd4bb8b38cf01eca73710f8c20fa07f88701a957 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Mon, 14 May 2012 03:50:51 +0200 Subject: add 2nd tinyos profile --- zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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" -- cgit v1.2.3