Artifact def85b4246f72abaaf2bf3babcbe6fd073b29e13040bace2c78d029665f57385:
- File fish/functions/cvsd.fish — part of check-in [2e8e994339] at 2020-08-30 03:44:27 on branch trunk — Add cvsd to get a colored cvs diff (user: js size: 354)
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