diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2011-08-17 14:21:35 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2011-08-17 14:21:35 +0200 |
commit | 455e0cb4c3bb9bdff481c4fce72ebc1b4114dbdd (patch) | |
tree | fa31fe560d5208d1a01e97066cbde676eb8ca00d /.zsh/zshrc | |
parent | be730cc68a9f740cac691091fc5dbf6c0caf58e8 (diff) |
Simplyfy profile handling, add $HOME/projects/ines
Diffstat (limited to '.zsh/zshrc')
-rw-r--r-- | .zsh/zshrc/90_profiles | 29 |
1 files 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" |