File fish/functions/cvsd.fish artifact def85b4246 part of check-in 3a29822385
function cvsd --wraps 'cvs diff' if type -q colordiff command cvs diff -uN $argv | colordiff | less -FRX else set -l red (tput setaf 1) set -l green (tput setaf 2) set -l reset (tput sgr0) cvs diff -uN $argv | sed "s/^+.*\$/$green&$reset/" | sed "s/^-.*\$/$red&$reset/" | less -FRX end end