summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zsh/zshrc/90_profiles10
1 files changed, 10 insertions, 0 deletions
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