From 870907996827aa51af04bb192cbed005df72750f Mon Sep 17 00:00:00 2001 From: Jack Ver Straate Date: Sat, 13 Sep 2025 14:05:41 -0400 Subject: [PATCH] Update telling-git-about-your-signing-key.md Edited the ZSH shell command to use the proper denotation for the TTY variable. --- .../telling-git-about-your-signing-key.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key.md b/content/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key.md index ff0962d60329..ab84019733ab 100644 --- a/content/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key.md +++ b/content/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key.md @@ -36,8 +36,8 @@ If you have multiple GPG keys, you need to tell Git which one to use. 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: ```shell - $ if [ -r ~/.zshrc ]; then echo -e '\nexport GPG_TTY=$(tty)' >> ~/.zshrc; \ - else echo -e '\nexport GPG_TTY=$(tty)' >> ~/.zprofile; fi + $ if [ -r ~/.zshrc ]; then echo -e '\nexport GPG_TTY=$TTY' >> ~/.zshrc; \ + else echo -e '\nexport GPG_TTY=$TTY' >> ~/.zprofile; fi ``` Alternatively, if you use the `bash` shell, run this command: