summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home/xyz/.bashrc2
-rwxr-xr-xhome/xyz/.local/bin/wh2
-rw-r--r--home/xyz/.profile6
3 files changed, 5 insertions, 5 deletions
diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc
index 52e36d46..bccad14f 100644
--- a/home/xyz/.bashrc
+++ b/home/xyz/.bashrc
@@ -66,7 +66,7 @@ alias ap='ampy -p /dev/ttyACM0'
alias b='lsblk -o NAME,FSTYPE,FSVER,LABEL,UUID,FSAVAIL,FSUSED,FSUSE%,MOUNTPOINTS'
alias c=cfg
alias d='\sdcv --color'
-alias e='$PAGER'
+alias e='"$PAGER"'
# https://superuser.com/a/1202867
alias fdu="find . -maxdepth 1 -execdir du -sh '{}' \+ | sort -h"
alias g=git
diff --git a/home/xyz/.local/bin/wh b/home/xyz/.local/bin/wh
index 4206c363..d20f0de6 100755
--- a/home/xyz/.local/bin/wh
+++ b/home/xyz/.local/bin/wh
@@ -8,4 +8,4 @@ sgr0="$(tput sgr0)"
for cmd in type whatis whereis which "pacman -Qo --color always"; do
printf '\n%s\n%s\n' "$setaf$cmd $*$sgr0" "$($cmd "$@" 2>&1)"
#printf '\n\033[0;34m%s\033[0m\n%s\n' "$setaf$cmd $*$sgr0" "$($cmd "$@" 2>&1)"
-done | $PAGER
+done | "$PAGER"
diff --git a/home/xyz/.profile b/home/xyz/.profile
index 5ccba219..b4e6cfab 100644
--- a/home/xyz/.profile
+++ b/home/xyz/.profile
@@ -21,16 +21,16 @@ export HISTFILESIZE=15000
export EDITOR=nvim
export BROWSER=firefox
+export PAGER=less
# -X seems can keep the output if exit less?
# -F is useful when sdcv need user to manually select similar word, after selection if no -F less will not quit if one screen
# but other situation seems less use -F as default?
# steal from sdcv arch wiki
-export PAGER='less -FRXi'
+# CALCURSE_PAGER less can't use -F, else ? and > hotkey will only blink the text
+export LESS=-FRXi
export SDCV_PAGER="$PAGER"
export SDCV_HISTSIZE=10000
-# CALCURSE_PAGER less can't use -F, else ? and > hotkey will only blink the text
-#export CALCURSE_PAGER=less
# not posix
export MANPAGER='nvim -M +Man!'
export MANSECT='1p:1:n:l:8:3p:3:0p:0:2:5:4:9:6:7'