From 075a1673764e05fd195ef5de81b50e9e1abc4e44 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sun, 21 Nov 2021 16:40:53 +0000 Subject: [PATCH] fix(shell): fshow command with delta When running fshow we are piping it into less. This was interfering with delta and loosing the formatting. This removes the pipe and lets delta handle the paging in the default way with all the highlighting. --- site-modules/core/files/oh-my-zsh/custom/fzf.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site-modules/core/files/oh-my-zsh/custom/fzf.zsh b/site-modules/core/files/oh-my-zsh/custom/fzf.zsh index cb43cba..5666795 100644 --- a/site-modules/core/files/oh-my-zsh/custom/fzf.zsh +++ b/site-modules/core/files/oh-my-zsh/custom/fzf.zsh @@ -36,10 +36,10 @@ fshow() { shas=$(sed '1,2d;s/^[^a-z0-9]*//;/^$/d' <<< "$out" | awk '{print $1}') [ -z "$shas" ] && continue if [ "$k" = ctrl-d ]; then - git diff --color=always $shas | less -R + git diff --color=always $shas else for sha in $shas; do - git show --color=always $sha | less -R + git show --color=always $sha done fi done