From a73984d9be1a9722d47786f2aa9070abd4339b0a Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 19 Jun 2020 17:06:02 +0200 Subject: zshrc/90_profiles: add cilium profile --- .zsh/zshrc/90_profiles | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.zsh/zshrc/90_profiles b/.zsh/zshrc/90_profiles index 813082f..a9df45e 100644 --- a/.zsh/zshrc/90_profiles +++ b/.zsh/zshrc/90_profiles @@ -15,6 +15,7 @@ CHPWD_PROFILE='default' zstyle ':chpwd:profiles:/home/tklauser/go/src/github.com/isovalent(|/|/*)' profile isovalent zstyle ':chpwd:profiles:/home/tklauser/go/src/github.com/covalentio(|/|/*)' profile isovalent +zstyle ':chpwd:profiles:/home/tklauser/src/cilium/cilium.io(|/|/*)' profile cilium zstyle ':chpwd:profiles:/home/tklauser/go(|/|/*)' profile distanz zstyle ':chpwd:profiles:/home/tklauser/src(|/|/*)' profile distanz @@ -27,6 +28,15 @@ chpwd_profile_distanz() export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" } +chpwd_profile_cilium() +{ + [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 + print "chpwd(): Switching to profile: $profile" + + export GIT_AUTHOR_EMAIL="tobias@cilium.io" + export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" +} + chpwd_profile_isovalent() { [[ ${profile} == ${CHPWD_PROFILE} ]] && return 1 -- cgit v1.2.3-54-g00ecf