From d56b6f65e8d895c1e8e7920a6aef6d2a06312589 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 26 May 2023 11:07:01 +0200 Subject: update --- .bashrc | 2 +- bin/gauth | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.bashrc b/.bashrc index e3a1c9a..8a5f978 100644 --- a/.bashrc +++ b/.bashrc @@ -151,7 +151,7 @@ meteo() { #[ -f "$base/usr/share/fzf/completion.bash" ] && . "$base/usr/share/fzf/completion.bash" #[ -f "$base/usr/share/fzf/key-bindings.bash" ] && . "$base/usr/share/fzf/key-bindings.bash" #unset base -export FZF_DEFAULT_COMMAND='rg --files --ignore-vcs --hidden' +export FZF_DEFAULT_COMMAND='rg -i --files --ignore-vcs --hidden' eval "$(zoxide init bash)" diff --git a/bin/gauth b/bin/gauth index bf66c2a..0c11531 100755 --- a/bin/gauth +++ b/bin/gauth @@ -1,11 +1,9 @@ #!/bin/sh # Use backup from andOTP -#gpg -qd ~/otp_accounts.json.gpg.pgp | -#gpg -qd ~/.otp_accounts.json.gpg | #cat ~/otp_accounts.json | gpg -qd ~/.otp.gpg | -jq -r '.[] | "\(.label) \(.secret)"' | -while read -r l s; do - echo "$l $(oathtool --totp -b "$s")" +jq -r '.[] | "\(.label) \(.secret) \(.issuer)"' | +while read -r l s i; do + printf "%-32s %-10s %s\n" "$l" "$i" "$(oathtool --totp -b "$s")" done -- cgit v1.2.3