zsh: paging goodness
This commit is contained in:
parent
a4e102f944
commit
264fa64323
1 changed files with 8 additions and 3 deletions
11
.zshrc
11
.zshrc
|
@ -103,6 +103,8 @@ export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
|
||||||
## Pager
|
## Pager
|
||||||
export LESS="--mouse --wheel-lines=1 -nRXF"
|
export LESS="--mouse --wheel-lines=1 -nRXF"
|
||||||
|
export PAGER="bat"
|
||||||
|
export BAT_PAGER="less -r"
|
||||||
|
|
||||||
## Clipboard OSC 52
|
## Clipboard OSC 52
|
||||||
function clip { echo -en "\x1b]52;c;$(base64 -w0)\x07" }
|
function clip { echo -en "\x1b]52;c;$(base64 -w0)\x07" }
|
||||||
|
@ -111,12 +113,10 @@ export LESS="--mouse --wheel-lines=1 -nRXF"
|
||||||
alias c='cut -c-${COLUMNS}'
|
alias c='cut -c-${COLUMNS}'
|
||||||
alias e='tmux-edit-helper'
|
alias e='tmux-edit-helper'
|
||||||
alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git'
|
alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git'
|
||||||
alias l=bat
|
alias l='bat --wrap=never'
|
||||||
alias lw='bat --wrap=never'
|
|
||||||
alias ls=exa
|
alias ls=exa
|
||||||
alias tail='tail -n $LINES'
|
alias tail='tail -n $LINES'
|
||||||
alias timestamp='TZ=Z date "+%Y%m%dT%H%M%SZ"'
|
alias timestamp='TZ=Z date "+%Y%m%dT%H%M%SZ"'
|
||||||
alias tree='exa --tree'
|
|
||||||
alias v=vgrep
|
alias v=vgrep
|
||||||
alias ve='env EDITOR= vgrep -s'
|
alias ve='env EDITOR= vgrep -s'
|
||||||
alias xc=clip
|
alias xc=clip
|
||||||
|
@ -125,6 +125,11 @@ alias w="history -1 | sed -e 's/[0-9]* //' | xargs viddy -n1"
|
||||||
## ripgrep
|
## ripgrep
|
||||||
export RIPGREP_CONFIG_PATH=${HOME}/.config/shelman-theme/current/rg/rg.conf
|
export RIPGREP_CONFIG_PATH=${HOME}/.config/shelman-theme/current/rg/rg.conf
|
||||||
|
|
||||||
|
|
||||||
|
tree() {
|
||||||
|
exa --tree --color=always "$@" | bat --wrap=never
|
||||||
|
}
|
||||||
|
|
||||||
# "auto paging"
|
# "auto paging"
|
||||||
rg() {
|
rg() {
|
||||||
/usr/bin/rg -p "$@" | bat
|
/usr/bin/rg -p "$@" | bat
|
||||||
|
|
Loading…
Reference in a new issue