summaryrefslogtreecommitdiff
path: root/.zsh/zshrc
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2020-06-19 17:06:02 +0200
committerTobias Klauser <tklauser@distanz.ch>2020-06-19 17:06:02 +0200
commita73984d9be1a9722d47786f2aa9070abd4339b0a (patch)
tree3a65b8565192b860a7ce4f51dc08613f4c6ce5a2 /.zsh/zshrc
parentd1fff164af0c8b0dbc339c21a9c8d1328550d83e (diff)
zshrc/90_profiles: add cilium profile
Diffstat (limited to '.zsh/zshrc')
-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