From b27df403d7f2e6b72f287bc6a5a0361788f4de3b Mon Sep 17 00:00:00 2001 From: Wenxuan Date: Fri, 22 Dec 2017 20:53:31 +0800 Subject: [PATCH] Make sure no '-F' option on less pager Former-commit-id: 19a88253450f11696bfda84cb0b85c03d2937d47 --- forgit.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index 642f8ee..0f707d6 100644 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -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