Files
linux-config/dot_config/fish/functions/smol/smol-add.fish
2019-09-05 00:48:47 -04:00

11 lines
277 B
Fish

function smol-add
if test (count $argv) -eq 2
curl -d 'format=json' \
-d "long=$argv[1]" \
-d "short=$argv[2]" \
https://smol.gq | jq .
else
curl -d 'format=json' -d "long=$argv[1]" https://smol.gq | jq .
end
end