summaryrefslogtreecommitdiff
path: root/.zsh/zshrc
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-01-25 15:26:23 +0100
committerTobias Klauser <tklauser@distanz.ch>2013-01-25 15:26:23 +0100
commit04be6cf16a169bebaa3a79fbf76fb82f6cd1586d (patch)
tree4618bc03154eac47847c78a9580939e26273bca6 /.zsh/zshrc
parent4c84a05b86323eaf3f48451902cc1fa27632d506 (diff)
zshrc: Add UZH chpwd profile
Diffstat (limited to '.zsh/zshrc')
-rw-r--r--.zsh/zshrc/90_profiles24
1 files changed, 17 insertions, 7 deletions
diff --git a/.zsh/zshrc/90_profiles b/.zsh/zshrc/90_profiles
index 3e3354d..3e1ed22 100644
--- a/.zsh/zshrc/90_profiles
+++ b/.zsh/zshrc/90_profiles
@@ -6,7 +6,7 @@
#
# chpwd_profiles taken from grml zshrc
#
-# Copyright © 2010 Tobias Klauser <tklauser@distanz.ch>
+# Copyright © 2010-2013 Tobias Klauser <tklauser@distanz.ch>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.distanz.ch/dotfiles/zsh.git
@@ -19,23 +19,33 @@ zstyle ':chpwd:profiles:/home/tklauser/src/linux-2.6(|/|/*)' profile di
zstyle ':chpwd:profiles:/home/tklauser/projects/ines(|/|/*)' profile zhaw
zstyle ':chpwd:profiles:/home/tklauser/projects/sinet(|/|/*)' profile zhaw
zstyle ':chpwd:profiles:/home/tklauser/projects/hd_over_ip(|/|/*)' profile zhaw
+zstyle ':chpwd:profiles:*locomotor-primitives*' profile uzh
-chpwd_profile_zhaw()
+chpwd_profile_distanz()
{
[[ ${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"
+ export GIT_AUTHOR_EMAIL="tklauser@distanz.ch"
+ export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
}
-chpwd_profile_distanz()
+chpwd_profile_uzh()
{
[[ ${profile} == ${CHPWD_PROFILE} ]] && return 1
print "chpwd(): Switching to profile: $profile"
- export GIT_AUTHOR_EMAIL="tklauser@distanz.ch"
- export GIT_COMMITTER_EMAIL="tklauser@distanz.ch"
+ export GIT_AUTHOR_EMAIL="tobias.klauser@uzh.ch"
+ export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
+}
+
+chpwd_profile_zhaw()
+{
+ [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1
+ print "chpwd(): Switching to profile: $profile"
+
+ export GIT_AUTHOR_EMAIL="klto@zhaw.ch"
+ export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
}
function chpwd_profiles() {