summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-05-26 11:07:01 +0200
committerMarc Vertes <mvertes@free.fr>2023-05-26 11:07:01 +0200
commitd56b6f65e8d895c1e8e7920a6aef6d2a06312589 (patch)
tree14bfce2dd63b4488fb6f78d32f45f7dfc0b6fbec
parentdae618ee1c8c8c80f6e6d0b1ee4fb1c503eb71e7 (diff)
update
-rw-r--r--.bashrc2
-rwxr-xr-xbin/gauth8
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