dotfiles/fish/.config/fish/functions/pb.fish

13 lines
279 B
Fish
Raw Normal View History

2018-08-11 05:38:12 +00:00
function pb
2018-08-14 00:18:49 +00:00
if type -q pb > /dev/null
command pb $argv
else
2018-08-14 00:18:49 +00:00
if count $argv > /dev/null
curl -F'file=@'$argv[1] https://0x0.tilde.team
else
curl -F'file=@-;filename=stdin.txt' https://0x0.tilde.team
end
end
2018-08-11 05:38:12 +00:00
end