From df0acdae36e414fb5529bb51e344cbe9a08f21dd Mon Sep 17 00:00:00 2001 From: earnest ma Date: Wed, 22 Jun 2022 20:02:42 -0400 Subject: [PATCH] * --- zsh/.zprofile | 2 +- zsh/.zshrc | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/zsh/.zprofile b/zsh/.zprofile index cdb3446..c09733b 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -34,6 +34,6 @@ export CALIBRE_USE_SYSTEM_THEME=0 export CALIBRE_USE_DARK_PALETTE=1 # macOS: homebrew -eval "$(/opt/homebrew/bin/brew shellenv)" +[ -f /opt/homebrew/bin/brew ] && eval "$(/opt/homebrew/bin/brew shellenv)" export PATH diff --git a/zsh/.zshrc b/zsh/.zshrc index f407df8..ae24f54 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -70,6 +70,11 @@ if [[ "$HOST" == core.envs.net ]]; then export GPG_TTY=$(tty) fi +# tycho (which is a laptop) +if [[ "$HOST" == tycho && -z "$DISPLAY" ]]; then + export GPG_TTY=$(tty) +fi + # pash configuration export PASH_KEYID=BF66E5C8A1416E2A857C774CA343F43342EB6E2A pash() {