diff --git a/fish.configlink/functions/gittools.fish b/fish.configlink/functions/gittools.fish index a0540d5..134814d 100644 --- a/fish.configlink/functions/gittools.fish +++ b/fish.configlink/functions/gittools.fish @@ -42,7 +42,7 @@ function gittools --height 50% \ -m \ --preview-window right:70% \ - --preview 'set -l IFS; set gd (git diff --color=always (echo {} | awk \'{$1=$1};1\' | cut -d" " -f2)); if test "$gd"; echo "$gd"; else; bat (echo {} | awk \'{$1=$1};1\' | cut -d" " -f2); end') + --preview 'set -l IFS; set gd (git diff --color=always (echo {} | awk \'{$1=$1};1\' | cut -d" " -f2)); if test "$gd"; echo "$gd"; else; bat --color=always (echo {} | awk \'{$1=$1};1\' | cut -d" " -f2); end') and for gf in $gitfile set gf (echo $gf \ | awk '{$1=$1};1' \