X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=brc2;fp=brc2;h=fbe19ebbcca468d00b2f2caa942466cd83bf88ec;hp=af4d8082aaa92268c4f0f9daa5e10e6501be15c5;hb=0f9a999aa601cd77343a3e08cf0c6c4f9f943813;hpb=51c8b40fd2aac71d29dc9298ca65425725ad1edd diff --git a/brc2 b/brc2 index af4d808..fbe19eb 100644 --- a/brc2 +++ b/brc2 @@ -58,6 +58,13 @@ source /a/bin/log-quiet/logq-function source /a/bin/bash_unpublished/source-semi-priv source /a/bin/bash_unpublished/source-state +if [[ $HOSTNAME == "$MAIL_HOST" ]]; then + export MAIL_HOST_P=t +else + export NOT_MAIL_HOST_P=t +fi + + source /a/bin/log-quiet/logq-function # not used @@ -3100,6 +3107,7 @@ ngo() { otp() { oathtool --totp -b "$*" | xclip -selection clipboard } +# run cmd and copy output j() { "$@" |& pee "xclip -r -selection clipboard" cat }