Dotfiles for my tiling window manager + terminal workflow.

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