From 6a268a724898a1637ee85ab00801c9abbd3fee02 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sun, 6 Dec 2015 10:48:14 +0100 Subject: update chpwd profiles - drop tinyos profile (no longer required) - add ccache support to linux profile --- zshrc | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/zshrc b/zshrc index 445b0b0..67b2c1a 100644 --- a/zshrc +++ b/zshrc @@ -171,35 +171,30 @@ zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' 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() { +zstyle ':chpwd:profiles:/home/sre/src/linux(|/|/*)' profile linux +zstyle ':chpwd:profiles:/home/sre/src/linux-next(|/|/*)' profile linux +zstyle ':chpwd:profiles:/home/sre/src/linux-stable(|/|/*)' profile linux +zstyle ':chpwd:profiles:/home/sre/src/linux-hsi(|/|/*)' profile linux +zstyle ':chpwd:profiles:/home/sre/src/linux-n900(|/|/*)' profile linux +zstyle ':chpwd:profiles:/home/sre/src/linux-power-supply(|/|/*)' profile linux +zstyle ':chpwd:profiles:/home/sre/src/zybo/linux(|/|/*)' profile linux + +chpwd_profile_linux() { [[ ${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_tinyos_new() { - [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 - print "chpwd(): Switching to profile: $profile" + print "Switching to profile: $profile" - export TOSROOT="/home/sre/src/tinyos-new" - export TOSDIR="$TOSROOT/tos" - export MAKERULES="$TOSROOT/support/make/Makerules" + export PATH="/usr/lib/ccache:$PATH" + export CROSS_COMPILE="arm-linux-gnueabihf-" + export ARCH=arm } chpwd_profile_default() { [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 print "chpwd(): Switching to profile: $profile" - unset TOSROOT - unset TOSDIR - unset MAKERULES + export PATH=$(echo $PATH | sed "s~/usr/lib/ccache:~~g") + unset CROSS_COMPILE + unset ARCH } # needed by webgen -- cgit v1.2.3