aboutsummaryrefslogtreecommitdiff
path: root/dot.zshrc.local
diff options
context:
space:
mode:
Diffstat (limited to 'dot.zshrc.local')
-rw-r--r--dot.zshrc.local6
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'
}