From 455e0cb4c3bb9bdff481c4fce72ebc1b4114dbdd Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 17 Aug 2011 14:21:35 +0200 Subject: Simplyfy profile handling, add $HOME/projects/ines --- .zsh/zshrc/90_profiles | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/.zsh/zshrc/90_profiles b/.zsh/zshrc/90_profiles index 57e5315..888c79a 100644 --- a/.zsh/zshrc/90_profiles +++ b/.zsh/zshrc/90_profiles @@ -14,11 +14,12 @@ CHPWD_PROFILE='default' -zstyle ':chpwd:profiles:/home/tklauser/src/nios2-linux(|/|/*)' profile nios2linux -zstyle ':chpwd:profiles:/home/tklauser/projects/sinet(|/|/*)' profile sinet -zstyle ':chpwd:profiles:/home/tklauser/src/linux-2.6(|/|/*)' profile linux26 +zstyle ':chpwd:profiles:/home/tklauser/src/nios2-linux(|/|/*)' profile zhaw +zstyle ':chpwd:profiles:/home/tklauser/src/linux-2.6(|/|/*)' profile distanz +zstyle ':chpwd:profiles:/home/tklauser/projects/ines(|/|/*)' profile zhaw +zstyle ':chpwd:profiles:/home/tklauser/projects/sinet(|/|/*)' profile zhaw -chpwd_profile_nios2linux() +chpwd_profile_zhaw() { [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 print "chpwd(): Switching to profile: $profile" @@ -27,25 +28,7 @@ chpwd_profile_nios2linux() export GIT_COMMITTER_EMAIL="klto@zhaw.ch" } -chpwd_profile_sinet() -{ - [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 - print "chpwd(): Switching to profile: $profile" - - export GIT_AUTHOR_EMAIL="klto@zhaw.ch" - export GIT_COMMITTER_EMAIL="klto@zhaw.ch" -} - -chpwd_profile_hdoip() -{ - [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 - print "chpwd(): Switching to profile: $profile" - - export GIT_AUTHOR_EMAIL="klto@zhaw.ch" - export GIT_COMMITTER_EMAIL="klto@zhaw.ch" -} - -chpwd_profile_linux26() +chpwd_profile_distanz() { [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 print "chpwd(): Switching to profile: $profile" -- cgit v1.2.3-54-g00ecf