mirror of
https://github.com/tumillanino/miasma-os.git
synced 2026-04-11 07:15:31 +00:00
move to new repo
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# Imported and improved from https://qrcode.show/, section SHELL FUNCTIONS
|
||||
|
||||
_qrcode_show_message() {
|
||||
echo "Type or paste your text, add a new blank line, and press ^d"
|
||||
}
|
||||
|
||||
qrcode () {
|
||||
local input="$*"
|
||||
[ -z "$input" ] && _qrcode_show_message && local input="@/dev/stdin"
|
||||
curl -d "$input" https://qrcode.show
|
||||
}
|
||||
|
||||
qrsvg () {
|
||||
local input="$*"
|
||||
[ -z "$input" ] && _qrcode_show_message && local input="@/dev/stdin"
|
||||
curl -d "$input" https://qrcode.show -H "Accept: image/svg+xml"
|
||||
}
|
||||
Reference in New Issue
Block a user