From: Ian Kelling Date: Sat, 6 Jul 2024 03:01:30 +0000 (-0400) Subject: minor improvements X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=fa8aa2e7b3e898d1a89d3a7a0c59c5a65ce30ccb;p=distro-setup minor improvements --- diff --git a/.bashrc b/.bashrc index 9e4310f..ea49780 100644 --- a/.bashrc +++ b/.bashrc @@ -55,7 +55,8 @@ HISTIGNORE='pass *:otp *:oathtool *:histrm *' umask 022 -if [[ $EUID == 1000 && $TERM == linux && ! $DISPLAY && $(tty) = /dev/tty1 && -x /usr/bin/startx ]]; then +if [[ $EUID == 1000 && ! $_ran_bashrc && $TERM == linux && ! $DISPLAY && $(tty) = /dev/tty1 && -x /usr/bin/startx ]]; then + _ran_bashrc=t if tmp=$(systemctl status |& head) && \ grep -qi '^ *state: running' <<<"$tmp" && grep -qi '^ *failed: 0' <<<"$tmp" && grep -qi '^ *jobs: 0' <<<"$tmp"; then startx @@ -66,6 +67,7 @@ if [[ $EUID == 1000 && $TERM == linux && ! $DISPLAY && $(tty) = /dev/tty1 && -x systemctl list-jobs fi fi +_ran_bashrc=t #### if (in # noninteractive ssh shells or tty). tty because often i use it when diff --git a/btrbk-run b/btrbk-run index ce4651b..7769e64 100644 --- a/btrbk-run +++ b/btrbk-run @@ -919,6 +919,7 @@ else done fi +bzip2 $log_path # todo, we get hostnames earlier, reuse that. if [[ $ret == 0 ]]; then for tg in ${targets[@]}; do @@ -926,12 +927,12 @@ if [[ $ret == 0 ]]; then if [[ $h == kd && $HOSTNAME == x3 && $HOSTNAME == "$MAIL_HOST" ]]; then d ssh root@$tg 'btrbk-spread-wrap &>/dev/null