diff options
| author | Thomas Schneider <qsx@chaotikum.eu> | 2026-07-27 18:58:48 +0200 |
|---|---|---|
| committer | Thomas Schneider <qsx@chaotikum.eu> | 2026-07-27 20:02:39 +0200 |
| commit | e9b84ab128e7534621e2346f570fb0b824b4ccd3 (patch) | |
| tree | 7f1055a4420f950be73a9035b3031a014faaebaa | |
| parent | 15173a61bcf7c2818df5cef73c98cabd98828753 (diff) | |
zsh: Do not wake gpg-agent and show SSH keys in containers
| -rw-r--r-- | dot.zshrc.local | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dot.zshrc.local b/dot.zshrc.local index 0772438..51a76ff 100644 --- a/dot.zshrc.local +++ b/dot.zshrc.local @@ -94,8 +94,10 @@ fi if (( $+commands[rsync] )); then alias rs="rsync -vahPi" fi -gpg-connect-agent /bye -ssh-add -l +if ! (( $+_CONTAINERS_USERNS_CONFIGURED )); then + gpg-connect-agent /bye + ssh-add -l +fi function countdown { ENDTIME=$(date -d "$1" +%s) watch -b -e -n 1 -x sh -c 'DIFF=$(($ENDTIME - $(date +%s))); echo $(($DIFF / 60)) min $(($DIFF % 60)) s; if [ $DIFF -lt 1 ]; then exit 1; fi' } |
