Skip to content

Commit 8709079

Browse files
Update telling-git-about-your-signing-key.md
Edited the ZSH shell command to use the proper denotation for the TTY variable.
1 parent d3d21e7 commit 8709079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ If you have multiple GPG keys, you need to tell Git which one to use.
3636
1. If you aren't using the GPG suite, run the following command in the `zsh` shell to add the GPG key to your `.zshrc` file, if it exists, or your `.zprofile` file:
3737

3838
```shell
39-
$ if [ -r ~/.zshrc ]; then echo -e '\nexport GPG_TTY=$(tty)' >> ~/.zshrc; \
40-
else echo -e '\nexport GPG_TTY=$(tty)' >> ~/.zprofile; fi
39+
$ if [ -r ~/.zshrc ]; then echo -e '\nexport GPG_TTY=$TTY' >> ~/.zshrc; \
40+
else echo -e '\nexport GPG_TTY=$TTY' >> ~/.zprofile; fi
4141
```
4242

4343
Alternatively, if you use the `bash` shell, run this command:

0 commit comments

Comments
 (0)