#!/bin/bash
-set -e; . /usr/local/lib/err; set +e
+set -e; . /usr/local/lib/bash-bear; set +e
remote=$1
fastcon=0
while true; do
start=$EPOCHSECONDS
+ if ! ssh-add -l | grep SHA256:YEhwH5u+wkqkSl/dCq8rFebi2qz7Os3RmIWPxMg13eA &>/dev/null; then
+ ssh -n $remote
+ fi
# -n or else it competes with the other ssh for reading stdin.
ssh -n $remote prof-tail | prof-notify &
ssh -t $remote screen -Dr -S profanity ||: