configs  Artifact [20c18b9bae]

Artifact 20c18b9baeed9881103749f363b64cce4d97eabf08a49c37312d95ad18a6ad64:


function fld --wraps 'fossil diff'
    if type -q colordiff2
        command fossil diff -N $argv | colordiff | less -FRX
    else
        set -l red (tput setaf 1)
        set -l green (tput setaf 2)
        set -l reset (tput sgr0)
        fossil diff -N $argv | sed "s/^+.*\$/$green&$reset/" |
            sed "s/^-.*\$/$red&$reset/" | less -FRX
    end
end