diff options
Diffstat (limited to 'util.fish')
| -rw-r--r-- | util.fish | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/util.fish b/util.fish new file mode 100644 index 0000000..4fe4444 --- /dev/null +++ b/util.fish @@ -0,0 +1,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 |