X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc;h=c3747cf97e5a8b6f4e3de521db69f401c10b6281;hb=5c8530653c87af3757a2c649772e0405bcd143a0;hp=6322eb97c22063be93d93b6feb0f0969ef24e668;hpb=ad09c51104f62d1da1782387025b44327a081872;p=distro-setup diff --git a/brc b/brc index 6322eb9..c3747cf 100644 --- a/brc +++ b/brc @@ -466,6 +466,10 @@ c() { } ccomp cd c +bwm() { + s bwm-ng -T avg -d + } + b() { local topb if (( ${#_iankdirb[@]} == 0 )); then @@ -940,14 +944,18 @@ eless() { } ccomp less eless eqcat() { - exiqgrep -i -o 60 | while read -r i; do + exiqgrep -ir.\* -o 60 | while read -r i; do hlm exim -Mvc $i echo hlm exigrep $i /var/log/exim4/mainlog | cat ||: done } eqrmf() { - exiqgrep -i | xargs exim -Mrm + # other ways to get the list of message ids: + # exim -bp | awk 'NF == 4 {print $3}' + # # this is slower 160ms, vs 60. + # exipick -i + exiqgrep -ir.\* | xargs exim -Mrm } econfdevnew() { @@ -1567,7 +1575,7 @@ resolvcat() { grep '^ *hosts:' /etc/nsswitch.conf if systemctl is-enabled systemd-resolved &>/dev/null || [[ $(systemctl is-active systemd-resolved ||:) != inactive ]]; then hr; m ser status systemd-resolved | cat || : - hr; m systemd-resolve --status | cat + hr; m resolvectl status | cat fi }