From f1a4f048e8dde636f6e94cbaffbb3e3c6f84ba6f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 16 Aug 2022 15:01:40 +0900 Subject: [PATCH] git diff --no-ext-diff https://gist.github.com/junegunn/8b572b8d4b5eddd8b85e5f4d40f17236 --- fzf-git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fzf-git.sh b/fzf-git.sh index 515d1ce..2cae7aa 100644 --- a/fzf-git.sh +++ b/fzf-git.sh @@ -103,7 +103,7 @@ _fzf_git_files() { _fzf_git_fzf -m --ansi --nth 2..,.. \ --prompt '📁 Files> ' \ --bind "ctrl-o:execute-silent:bash $_fzf_git file {-1}" \ - --preview "git diff --color=always -- {-1} | sed 1,4d; $_fzf_git_cat {-1}" | + --preview "git diff --no-ext-diff --color=always -- {-1} | sed 1,4d; $_fzf_git_cat {-1}" | cut -c4- | sed 's/.* -> //' }