From 952000bc062a3a5a5fb64e1921e5e78f183df611 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 20 Oct 2014 09:40:53 +0200 Subject: profiles: Add zhinst profile --- .zsh/zshrc/90_profiles | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to '.zsh/zshrc') diff --git a/.zsh/zshrc/90_profiles b/.zsh/zshrc/90_profiles index 3e1ed22..aee9ee6 100644 --- a/.zsh/zshrc/90_profiles +++ b/.zsh/zshrc/90_profiles @@ -6,7 +6,7 @@ # # chpwd_profiles taken from grml zshrc # -# Copyright © 2010-2013 Tobias Klauser +# Copyright © 2010-2014 Tobias Klauser # Released under the terms of the Artistic Licence 2.0 # # Source repository: git://git.distanz.ch/dotfiles/zsh.git @@ -16,10 +16,11 @@ CHPWD_PROFILE='default' zstyle ':chpwd:profiles:/home/tklauser/src/nios2-linux(|/|/*)' profile distanz zstyle ':chpwd:profiles:/home/tklauser/src/linux-2.6(|/|/*)' profile distanz +zstyle ':chpwd:profiles:*locomotor-primitives*' profile uzh 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 +zstyle ':chpwd:profiles:/home/tobiask/zi/(|/|/*)' profile zhinst chpwd_profile_distanz() { @@ -48,6 +49,15 @@ chpwd_profile_zhaw() export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" } +chpwd_profile_zhinst() +{ + [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 + print "chpwd(): Switching to profile: $profile" + + export GIT_AUTHOR_EMAIL="tobias.klauser@zhinst.com" + export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" +} + function chpwd_profiles() { # Say you want certain settings to be active in certain directories. # This is what you want. -- cgit v1.2.3-54-g00ecf