style(PAGER): more beauty less

This commit is contained in:
TheK4n 2023-11-14 11:55:57 +03:00
parent a694fe88f0
commit 2fc1486659
5 changed files with 8 additions and 8 deletions

View File

@ -36,7 +36,7 @@ alias history='history 0'
# shorts # shorts
alias c='clear' alias c='clear'
alias q='exit 0' alias q='exit 0'
alias h='history | less' alias h='history'
alias j='jobs -l' alias j='jobs -l'
# utils # utils
@ -76,7 +76,7 @@ alias halt='sudo /sbin/halt'
alias shutdown='sudo /sbin/shutdown now' alias shutdown='sudo /sbin/shutdown now'
alias meminfo='free -mlth' alias meminfo='free -mlth'
alias psmem='ps auxf | sort -nr -k 4 | less -R' alias psmem='ps auxf | sort -nr -k 4 | bash -c "$PAGER"'
alias music='mplayer -shuffle ~/Music/*.mp3' alias music='mplayer -shuffle ~/Music/*.mp3'
if [[ "$OSTYPE" == "linux-gnu"* ]]; then if [[ "$OSTYPE" == "linux-gnu"* ]]; then

View File

@ -3,7 +3,7 @@ umask 022
export EDITOR="nvim" export EDITOR="nvim"
export VISUAL="nvim" export VISUAL="nvim"
export PAGER="less -niSR" export PAGER="less -niSR -+X -+F"
export CDPATH=:~:~/code export CDPATH=:~:~/code
export HISTSIZE=10000 export HISTSIZE=10000

View File

@ -32,7 +32,7 @@ lsl () {
DIR="$(pwd)" DIR="$(pwd)"
fi fi
ls -lhFA --color=always "${DIR}" | tail -n +2 | less -R ls -lhFA --color=always "${DIR}" | tail -n +2 | bash -c "$PAGER"
} }
workon() { workon() {

View File

@ -1,7 +1,7 @@
[core] [core]
excludesfile = ~/.config/git/ignore excludesfile = ~/.config/git/ignore
editor = $EDITOR editor = "$EDITOR"
pager = $PAGER pager = "$PAGER"
fileMode = false fileMode = false
hooksPath = ~/.config/git/hooks hooksPath = ~/.config/git/hooks
@ -39,7 +39,7 @@
bm = branch --merged bm = branch --merged
bn = branch --no-merged bn = branch --no-merged
hist = log --pretty=format:\"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)\" --graph --date=relative --decorate --all --color=always hist = log --pretty=format:\"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)\" --graph --date=relative --decorate --all --color=always
hs = "!git hist -n 10" hs = "!git hist -n 10 | $PAGER -F"
df = "!f() { git log --pretty=format:\"%h %cd [%cn] %s%d\" --date=relative | fzf | awk '{print $1}' | xargs -I {} git diff {}^ {}; }; f" df = "!f() { git log --pretty=format:\"%h %cd [%cn] %s%d\" --date=relative | fzf | awk '{print $1}' | xargs -I {} git diff {}^ {}; }; f"
type = cat-file -t type = cat-file -t
dump = cat-file -p dump = cat-file -p

View File

@ -113,7 +113,7 @@ set $ws4 "4"
set $ws5 "5" set $ws5 "5"
set $ws6 "6" set $ws6 "6"
set $ws7 "7" set $ws7 "7"
set $ws8 "8🗨️" set $ws8 "8💬"
set $ws9 "9🎵" set $ws9 "9🎵"
set $ws10 "10🍿" set $ws10 "10🍿"