2fa tool for viewing your 2FA codes

This commit is contained in:
ville rantanen
2019-01-09 12:40:42 +02:00
parent 2e5838f30d
commit 90ef6170d6
3 changed files with 287 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ Examples:
Run qolop as script to print ANSI code table, or evaluate commands
qolop eval "_qCol G; printf hello; _qCol z" | qolop export
qolop eval "_qCol G; printf hello; _qCol z" | qolop escape
The first command produces string with ANSI commands, the
second will escape the escape characters, so you can copy/paste
@@ -184,7 +184,7 @@ if [[ "$0" = "${BASH_SOURCE[0]}" ]]; then
eval "$@"
exit
}
[[ "$1" = "export" ]] && {
[[ "$1" = "escape" ]] && {
cat - | sed s/$'\e'/\\\\033/g
echo ''
exit