ref(git-pager)

This commit is contained in:
TheK4n 2023-10-27 12:26:18 +03:00
parent d096feb72d
commit 94657335b5
3 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,7 @@
[core]
excludesfile = ~/.config/git/ignore
editor = nvim
editor = $EDITOR
pager = $PAGER
fileMode = false
hooksPath = ~/.config/git/hooks
@ -22,9 +23,9 @@
ui = auto
[alias]
a = "!git status --short | peco | awk '{print $2}' | xargs git add"
d = "!git diff --color=always | $PAGER"
ds = "!git diff --staged --color=always | $PAGER"
a = "!git status --short | fzf | awk '{print $2}' | xargs git add"
d = "!git diff --color=always | bash -c \"$PAGER\""
ds = "!git diff --staged --color=always | bash -c \"$PAGER\""
dno = diff --name-only
co = checkout
ci = commit

View File

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

View File

@ -1,4 +1,4 @@
alias -g L="| less -R"
alias -g L='| bash -c "$PAGER"'
alias -g HL='| highlight -O ansi -S '
alias -g CL=" --color=always | less -R"
alias -g OUT="1>/dev/null" # stdOUT