Skip to content

Commit 02f4c4c

Browse files
Adds env variables & git hooks section
1 parent 62c57a9 commit 02f4c4c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gitkraken-client/githooks.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,13 @@ fi
236236
### Git hook in action
237237
<img src='/wp-content/uploads/gkc-hook-in-action.gif' class='img-responsive center img-bordered' />
238238

239+
### Environment Variables & Git Hooks
240+
241+
GitKraken uses a non-interactive shell to run its git hooks so you may need to edit your rc profile (e.g. .bashrc or .zshenv) to allow your extensions and/or environment variables to run in non-interactive shells.
242+
243+
Bash shell sources env variables for both interactive and non-interactive definitions from your <i>.bashrc</i> file. But for ZSH, <i>.zshrc</i> is only sourced for interactive shells. Non-interactive definitions for ZSH should go in <i>.zshenv</i>.
244+
245+
239246
### Bypass git hooks
240247

241248
There may be times when you want to skip your Git hooks when making a commit. This can be done on a commit-by-commit basis by selecting the `Commit and skip hooks` option.

0 commit comments

Comments
 (0)