feat: add Dotbot

This commit is contained in:
Stefan Imhoff
2024-08-09 11:57:28 +02:00
parent a41290c297
commit 0437240919
248 changed files with 1205 additions and 44 deletions

View File

@@ -0,0 +1,7 @@
function dataUrl --description "Create a data URL from a file"
set mimeType (file -b --mime-type $argv)
if string match -r '^text/' $mimeType
set mimeType "$mimeType;charset=utf-8"
end
echo "data:$mimeType;base64,(openssl base64 -in $argv | tr -d '\n')"
end