[zsh] add an alias for a colorized wdiff

This commit is contained in:
Dmytro Meleshko 2021-06-24 19:18:15 +03:00
parent 14db5e1902
commit c98d336b83

View file

@ -120,3 +120,6 @@ if command_exists dragon-drag-and-drop && ! command_exists dragon; then
fi fi
alias gtime="command time -v" alias gtime="command time -v"
# Inspired by <https://github.com/junghans/cwdiff/blob/de56a73f37eb72edfb78ea610798a5744b8dcf10/cwdiff#L54-L61>.
alias cwdiff='wdiff --start-delete="${fg[red]}[-" --end-delete="-]${reset_color}" --start-insert="${fg[green]}{+" --end-insert "+}${reset_color}"'