From c98d336b838643b2edbe28ee815fbc09ffb31385 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Thu, 24 Jun 2021 19:18:15 +0300 Subject: [PATCH] [zsh] add an alias for a colorized wdiff --- zsh/aliases.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index b2c5a0a..05f7d5f 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -120,3 +120,6 @@ if command_exists dragon-drag-and-drop && ! command_exists dragon; then fi alias gtime="command time -v" + +# Inspired by . +alias cwdiff='wdiff --start-delete="${fg[red]}[-" --end-delete="-]${reset_color}" --start-insert="${fg[green]}{+" --end-insert "+}${reset_color}"'