chezmoi init
This commit is contained in:
commit
530d6d7195
1176 changed files with 111325 additions and 0 deletions
8
dot_oh-my-zsh/plugins/qrcode/README.md
Normal file
8
dot_oh-my-zsh/plugins/qrcode/README.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# QRCode plugin
|
||||
|
||||
Generate a QR Code from the command line. Uses [QRcode.show](https://qrcode.show) via curl.
|
||||
|
||||
alias | command
|
||||
--------------- | --------
|
||||
`qrcode [text]` | `curl -d "text" qrcode.show`
|
||||
`qrsvg [text]` | `curl -d "text" qrcode.show -H "Accept: image/svg+xml"`
|
17
dot_oh-my-zsh/plugins/qrcode/qrcode.plugin.zsh
Normal file
17
dot_oh-my-zsh/plugins/qrcode/qrcode.plugin.zsh
Normal file
|
@ -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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue