Make sure no '-F' option on less pager

This commit is contained in:
Wenxuan 2017-12-22 20:53:31 +08:00
parent 3ae72272c2
commit 19a8825345

View file

@ -31,7 +31,7 @@ glo() {
local cmd="echo {} |grep -o '[a-f0-9]\{7\}' |head -1 |xargs -I% git show --color=always % $emojify $fancy"
eval "git log --graph --color=always --format='%C(auto)%h%d %s %C(black)%C(bold)%cr' $@ $emojify" |
wfxr::fzf -e +s --tiebreak=index \
--bind="enter:execute($cmd |less -R)" \
--bind="enter:execute($cmd |LESS='-R' less)" \
--preview="$cmd"
}
# git diff brower
@ -40,7 +40,7 @@ gd() {
local cmd="git diff --color=always -- {} $emojify $fancy"
git ls-files --modified |
wfxr::fzf -e -0 \
--bind="enter:execute($cmd |less -R)" \
--bind="enter:execute($cmd |LESS='-R' less)" \
--preview="$cmd"
}
# git add selector