📜  将 gpg 密钥添加到 zsh .zprofile - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:48.839000             🧑  作者: Mango

代码示例1
$ if [ -r ~/.zshrc ]; then echo 'export GPG_TTY=$(tty)' >> ~/.zshrc; \
  else echo 'export GPG_TTY=$(tty)' >> ~/.zprofile; fi