Fish: covid tracking

This commit is contained in:
Phantop 2020-03-27 14:13:50 -04:00
parent a7f02819c5
commit ee0e6bcc6c
2 changed files with 6 additions and 0 deletions

View File

@ -8,3 +8,5 @@ set -gx PAGER "nvim -c 'set ft=man' -"
set -U Z_CMD "j"
set -x QT_QPA_PLATFORMTHEME gtk2
tty -s && covid us

View File

@ -0,0 +1,4 @@
# Defined in /tmp/fish.bWbyG9/covid.fish @ line 2
function covid
test $argv && curl https://covid19tracker.xyz/cmd/$argv 2> /dev/null | head -n17 || curl https://covid19tracker.xyz/cmd 2> /dev/null | head -n12
end