diff options
author | Sebastian Reichel <sre@ring0.de> | 2015-12-06 10:48:14 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2015-12-06 10:48:15 +0100 |
commit | 6a268a724898a1637ee85ab00801c9abbd3fee02 (patch) | |
tree | 47ccdfebdfd3c4823ed9a68f872e7a80f1e04575 | |
parent | 313a3d369ad0fab9bb3cf840bebb26bc16402aff (diff) | |
download | zsh-config-6a268a724898a1637ee85ab00801c9abbd3fee02.tar.bz2 |
update chpwd profiles
- drop tinyos profile (no longer required)
- add ccache support to linux profile
-rw-r--r-- | zshrc | 37 |
1 files changed, 16 insertions, 21 deletions
@@ -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 |