diff options
author | Sebastian Reichel <sre@ring0.de> | 2011-11-24 17:35:44 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2011-11-24 17:35:44 +0100 |
commit | 6470670aa050e6f73014f3ef12bc8488ff42e580 (patch) | |
tree | 02852c96d2c9330be7a16ec52dc0555a336c24c8 | |
parent | dac2c6ee79dc140ff0d4b43bd94c47cc6b3d163e (diff) | |
download | zsh-config-6470670aa050e6f73014f3ef12bc8488ff42e580.tar.bz2 |
add tinyos pwd profile
-rw-r--r-- | zshrc | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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" |