bin: fix pagination

This commit is contained in:
xeruf 2023-06-12 11:08:37 +02:00
parent 9056b4f474
commit bc37867fc3
4 changed files with 7 additions and 3 deletions

View File

@ -15,6 +15,7 @@ status() {
free -h
df -h -T --exclude-type=tmpfs --exclude-type=devtmpfs --exclude-type=squashfs --exclude-type=overlay
zfs list -d 0
sudo certbot certificates
highlight 'Internet'
#--color=always
ip -brief address | grep --color=none -E '^(wl|en|tun|vmbr)'

View File

@ -176,7 +176,7 @@ if test "$timg"; then
fi
fi
pager="${PAGER:-'less -RF'}"
pager="${PAGER:-'less -rF'}"
# bat: unknown files
# batplain: files to print without header
if test "$bat" -o "$batplain"; then

View File

@ -1,3 +1,3 @@
#!/bin/sh -e
# TODO completion: tree, outputs, inputs, ...
unbuffer swaymsg -t get_$1 | (test "$1" = tree && jq -C || cat) | less -RF
unbuffer swaymsg -t get_$1 | less -Fr

View File

@ -95,7 +95,7 @@ export EDITOR="$(
)"
export LS_OPTIONS='--color=auto --human-readable --si --group-directories-first --file-type --dereference-command-line'
export LESS="--RAW-CONTROL-CHARS --ignore-case --LONG-PROMPT --jump-target=5 $(test $(less --version | head -1 | cut -f2 -d' ') -ge 590 && echo --incsearch)"
export LESS="--raw-control-chars --ignore-case --LONG-PROMPT --jump-target=5 $(test $(less --version | head -1 | cut -f2 -d' ') -ge 590 && echo --incsearch)"
# TODO put into config file and use --exclude-from
# -x 'System Volume Information'
export DIRS_GENERATED="-x generated -x .gradle -x cmake_build -x dist-newstyle -x node_modules -x __pycache__"
@ -149,3 +149,6 @@ export FZF_CTRL_T_COMMAND="$FD_BASE -d 7"
export CTEST_PROGRESS_OUTPUT=1
export CTEST_OUTPUT_ON_FAILURE=1
export CTEST_PARALLEL_LEVEL=3
autolight
#export TZ='Europe/Dublin'