1
0
镜像自地址 https://tildegit.org/ben/dotfiles.git 已同步 2025-07-02 20:52:03 +00:00

add check for existing pb command

这个提交包含在:
Ben Harris 2018-08-13 20:18:49 -04:00
父节点 0ce6ea3b23
当前提交 a59c4b3955

查看文件

@ -1,8 +1,12 @@
function pb
if count $argv > /dev/null
curl -F'file=@'$argv[1] https://0x0.tilde.team
if type -q pb > /dev/null
command pb $argv
else
curl -F'file=@-;filename=stdin.txt' https://0x0.tilde.team
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
end