mirror of
https://tildegit.org/ben/dotfiles.git
synced 2025-04-14 16:23:23 +00:00
add check for existing pb command
This commit is contained in:
parent
0ce6ea3b23
commit
a59c4b3955
@ -1,8 +1,12 @@
|
|||||||
function pb
|
function pb
|
||||||
if count $argv > /dev/null
|
if type -q pb > /dev/null
|
||||||
curl -F'file=@'$argv[1] https://0x0.tilde.team
|
command pb $argv
|
||||||
else
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user