X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=.bashrc;h=ac78814f350e48ee565201e335e4af9f19216859;hb=87c3f2244a47ad10a031a27d0d0456f0a7defd21;hp=814c9af63136b822811da9ba20c1af02beaa1ff4;hpb=ca61084446e48fb0703ce2a203c1bd18ceaf4dfb;p=distro-setup diff --git a/.bashrc b/.bashrc index 814c9af..ac78814 100644 --- a/.bashrc +++ b/.bashrc @@ -55,10 +55,16 @@ HISTIGNORE='pass *:otp *:oathtool *:histrm *' umask 022 -if [[ $EUID == 1000 && $TERM == linux && ! $DISPLAY && $(tty) = /dev/tty1 && -x /usr/bin/startx ]] && \ - tmp=$(systemctl status |& head) && \ - grep -qi '^ *state: running' <<<"$tmp" && grep -qi '^ *failed: 0' <<<"$tmp" && grep -qi '^ *jobs: 0' <<<"$tmp"; then - startx +if [[ $EUID == 1000 && $TERM == linux && ! $DISPLAY && $(tty) = /dev/tty1 && -x /usr/bin/startx ]]; then + if tmp=$(systemctl status |& head) && \ + grep -qi '^ *state: running' <<<"$tmp" && grep -qi '^ *failed: 0' <<<"$tmp" && grep -qi '^ *jobs: 0' <<<"$tmp"; then + startx + else + echo "systemctl status |& head:" + printf "%s\n" "$tmp" + echo: systemctl list-jobs: + systemctl list-jobs + fi fi #### if (in