X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=brc;h=e8737aaef201894a24cc29ac2dfe1fde45b6ab8b;hp=37e09a0c13399224b748366482fc84b22f7a96ed;hb=32a1673064cfd9eaa165b4ea62fa416f02f3dfd2;hpb=4d0dc703ef2e62cd16ea84f27456f6f50f74baa3 diff --git a/brc b/brc index 37e09a0..e8737aa 100644 --- a/brc +++ b/brc @@ -3,11 +3,7 @@ # SPDX-License-Identifier: AGPL-3.0-or-later # this gets sourced. shebang is just for file mode detection -# note, to catch errors in functions but not outside, do: -# set -E -o pipefail -# trap return ERR -# trap 'trap ERR' RETURN - +source /a/bin/errhandle/err # * settings @@ -62,7 +58,7 @@ if [[ $RLC_INSIDE_EMACS ]]; then export PAGER=cat export MANPAGER=cat # scp completion does not work, but this doesnt fix it. todo, figure this out - complete -r scp &> /dev/null + #complete -r scp &> /dev/null # todo, remote file completion fails, figure out how to turn it off export NODE_DISABLE_COLORS=1 # This gets rid of ugly terminal escape chars in node repl @@ -639,7 +635,8 @@ rg() { } hr() { # horizontal row. used to break up output - printf "$(tput setaf 5)█$(tput sgr0)%.0s" $(seq ${COLUMNS:-60}) + + printf "$(tput setaf 5)█$(tput sgr0)%.0s" $(eval echo {1..${COLUMNS:-60}}) echo } @@ -1245,6 +1242,7 @@ if [[ $- == *i* ]]; then local return=$? # this MUST COME FIRST local ps_char ps_color unset IFS + history -a # save history case $return in