summaryrefslogtreecommitdiff
path: root/util.fish
blob: 4fe4444777f9ab4348b4b7365f1cc826c4bbcca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function log -a text
    set_color cyan
    # Pass arguments other than text to echo
    echo $argv[2..] -- ":: $text"
    set_color normal
end

function warn -a text
    set_color yellow
    # Pass arguments other than text to echo
    echo $argv[2..] -- ":: $text"
    set_color normal
end

function error -a text
    set_color red
    # Pass arguments other than text to echo
    echo $argv[2..] -- ":: $text"
    set_color normal
end