summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2011-08-17 14:21:35 +0200
committerTobias Klauser <tklauser@distanz.ch>2011-08-17 14:21:35 +0200
commit455e0cb4c3bb9bdff481c4fce72ebc1b4114dbdd (patch)
treefa31fe560d5208d1a01e97066cbde676eb8ca00d
parentbe730cc68a9f740cac691091fc5dbf6c0caf58e8 (diff)
Simplyfy profile handling, add $HOME/projects/ines
-rw-r--r--.zsh/zshrc/90_profiles29
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"