From dcaa634279385cfca633c9b52af5f96ecc7bb040 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 19 Oct 2017 14:14:08 +0200 Subject: zshrc: clean up profiles --- .zsh/zshrc/90_profiles | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.zsh/zshrc/90_profiles b/.zsh/zshrc/90_profiles index 53a608d..33c6a23 100644 --- a/.zsh/zshrc/90_profiles +++ b/.zsh/zshrc/90_profiles @@ -10,16 +10,15 @@ # Released under the terms of the Artistic Licence 2.0 # # Source repository: git://git.distanz.ch/dotfiles/zsh.git -# CHPWD_PROFILE='default' -zstyle ':chpwd:profiles:/home/tklauser/go(|/|/*)' profile distanz -zstyle ':chpwd:profiles:/home/tobiask/go(|/|/*)' profile distanz +zstyle ':chpwd:profiles:/home/tklauser/go(|/|/*)' profile distanz +zstyle ':chpwd:profiles:/home/tobiask/go(|/|/*)' profile distanz zstyle ':chpwd:profiles:/home/tklauser/src(|/|/*)' profile distanz zstyle ':chpwd:profiles:/home/tobiask/src(|/|/*)' profile distanz -zstyle ':chpwd:profiles:*locomotor-primitives*' profile uzh zstyle ':chpwd:profiles:/home/tobiask/zi(|/|/*)' profile zhinst +zstyle ':chpwd:profiles:/scratch/tobiask/zi(|/|/*)' profile zhinst chpwd_profile_distanz() { @@ -30,15 +29,6 @@ chpwd_profile_distanz() export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" } -chpwd_profile_uzh() -{ - [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 - print "chpwd(): Switching to profile: $profile" - - export GIT_AUTHOR_EMAIL="tobias.klauser@uzh.ch" - export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" -} - chpwd_profile_zhinst() { [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 -- cgit v1.2.3-54-g00ecf