-
It can also be wrapped in a bash or zsh alias so you can just run
decode_qr
:alias decode_qr='docker run --rm -v "$(pwd):/app" -w /app debian:bookworm-slim sh -c '\''apt update >/dev/null 2>&1 && apt install -y zbar-tools >/dev/null 2>&1 && for file in *.svg; do echo "\n$file"; zbarimg --raw --nodbus -q "$file"; done'\'
- add the alias snippet above to your ~./zshrc or ~./bashrc
- restart your terminal
- then you can just cd to the directory containing QR code SVG files and run
decode_qr
-
For reference here are the zbarimg docs:
https://manpages.ubuntu.com/manpages/jammy/en/man1/zbarimg.1.html
Please register or sign in to comment