~jagtalon/dotfiles

ref: 23109885e3097ec883af0fcd0cff2151629c106f dotfiles/.config/fish/functions/tarsnap.fish -rw-r--r-- 383 bytes
23109885 — Jag Talon Switch to /usr/bin/env fish for portability. 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function tarsnap
    switch $argv[1]
        case stats
            command tarsnap --print-stats --humanize
        case archives
            command tarsnap --list-archives | sort
        case extract
            command tarsnap --fast-read -xf $argv[2..-1]
        case ls
            command tarsnap -tf $argv[2..-1]
        case '*'
            command tarsnap $argv
    end
end