summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-10-12 10:25:22 +0200
committerMarc Vertes <mvertes@free.fr>2023-10-12 10:25:22 +0200
commit306c9135471f0a13de16fcc62af2d79ae810e1fe (patch)
tree45d550a782261a3e52ec13347d571460420eacb4
parent84e62a27aed00d442844842fcfd4213b19d8aad4 (diff)
improve gtr
-rw-r--r--.bashrc11
1 files changed, 7 insertions, 4 deletions
diff --git a/.bashrc b/.bashrc
index 9918eb1..46a1c94 100644
--- a/.bashrc
+++ b/.bashrc
@@ -20,7 +20,7 @@ shopt -s histappend # append to history, don't overwrite it
# cf "xft:Bitstream Vera Sans Mono:size=8:antialias=true
# cf() { printf '\e]710;%s\007' "${1:-fixed}"; }
-p() { [ -f "$1" -a ! -x "$1" ] && less -XF $1 || "$@" 2>&1 | less -XF ; }
+p() { [ -f "$1" -a ! -x "$1" ] && less "$1" || "$@" 2>&1 | less; }
export -f p
fixab() { printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 "$1"; }
@@ -32,8 +32,8 @@ fixab() { printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 "$1"; }
#export LESS_TERMCAP_us=$(tput setaf 5) # underline (magenta)
#export LESS_TERMCAP_ue=$'\E[0m' # end underline
-# Less: use a 4-space tabulation
-export LESS=XFRx4
+# Less: use a 4-space tabulation, search with ignorecase, no terminal (de)init
+export LESS=iXFRx4
# gnuplot display in terminal
export GNUTERM='sixelgd enhanced truecolor size 1600,1200 font "arial,9" fontscale 2'
@@ -67,7 +67,7 @@ alias gob='go build'
alias goh='p go help'
alias god='p go doc'
alias gol='GO111MODULE=off go'
-alias gtr='go test -v -run'
+# alias gtr='go test -v -run'
alias gtb='go test -v -cpuprofile cpu.out -memprofile mem.out -benchmem -bench'
alias gdt='dlv test -- -test.v -test.run'
alias rvi='sudo vim'
@@ -78,6 +78,9 @@ alias s='(cd ~/Wiki && vi scratch.md)'
alias dotfiles='git --git-dir=$HOME/dotfiles --work-tree=$HOME'
alias pv='qlmanage -p'
+gtr() { go test -v -run "$@"; }
+export -f gtr
+
#alias uc='systemctl --user'
#alias wpa='sudo wpa_gui -i wlan0'