configs  Artifact [d13ac32f48]

Artifact d13ac32f4812898de3c8f35dcbe3b584d1b2da5ea4195f315c0316d4fec74733:

  • File fish/functions/cvsd.fish — part of check-in [b119513a53] at 2020-09-18 13:47:57 on branch trunk — Don't rely on tput (user: js size: 371)

function cvsd --wraps 'cvs diff'
    if type -q colordiff
        command cvs diff -uN $argv | colordiff | less -FRX
    else
        set -l red (printf "\033[31m")
        set -l green (printf "\033[32m")
        set -l reset (printf "\033[0m")
        cvs diff -uN $argv | sed "s/^+.*\$/$green&$reset/" |
            sed "s/^-.*\$/$red&$reset/" | less -FRX
    end
end