mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 23:55:37 +00:00
colorize git add fzf diff previews
This commit is contained in:
parent
721c903293
commit
dfc02156a4
@ -42,7 +42,7 @@ function gittools
|
|||||||
--height 50% \
|
--height 50% \
|
||||||
-m \
|
-m \
|
||||||
--preview-window right:70% \
|
--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
|
and for gf in $gitfile
|
||||||
set gf (echo $gf \
|
set gf (echo $gf \
|
||||||
| awk '{$1=$1};1' \
|
| awk '{$1=$1};1' \
|
||||||
|
Loading…
Reference in New Issue
Block a user