X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc;h=55efac12039265d516bcac23b0ee91b756b2a289;hb=343a048be4b32d18540c6531048d2b9a006774ae;hp=5fb46ac450959aa36d96908568d25e7fa5c7b104;hpb=f6501ed8450080e799b9293a2b38f3381e791db4;p=distro-setup diff --git a/brc b/brc index 5fb46ac..55efac1 100644 --- a/brc +++ b/brc @@ -26,9 +26,7 @@ unalias -a shopt -s extglob # include .files when globbing, but ignore files name . and .. # setting this also sets dotglob. -# Note, this doesnt work in bash 4.4 anymore, for paths with -# more than 1 directory, like a/b/.foo, since * is fixed to not match / -export GLOBIGNORE=*/.:*/.. +export GLOBIGNORE="*/.:*/.." # broken with bash_completion package. Saw a bug for this once. dont anymore. # still broken in wheezy @@ -652,7 +650,10 @@ envload() { # load environment from a previous: export > file # mail related etail() { - sudo tail -F /var/log/exim4/mainlog -n 50 + tail -F /var/log/exim4/mainlog -n 200 +} +eless() { + less /var/log/exim4/mainlog } f() { @@ -1441,7 +1442,7 @@ q() { # start / launch a program in the backround and redir output to null } r() { - histappend -a + history -a # save history exit "$@" # i had this redir, not sure why # exit "$@" 2>/dev/null @@ -1634,12 +1635,17 @@ sgo() { # service go fi } +sgu() { + systemctl list-unit-files | rg "$@" +} -shellck() { +sk() { # 2086 = unquoted $var # 2046 = unquoted $(cmd) + # 2068: Double quote array expansions to avoid re-splitting elements. # i had -x as an arg, but debian testing(stretch) doesn\'t support it - shellcheck -e 2086,2046,2068,2006,2119 "$@" + shellcheck -x -e 2086,2046,2068 "$@" + # had this before. not sure what it is 2119 } skaraoke() {