Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
277 B

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