summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2020-03-11 15:32:15 +0100
committerMarc Vertes <mvertes@free.fr>2020-03-11 15:32:15 +0100
commite80ec0d2a634e7ef3e75a61874a1f937ed15fc79 (patch)
tree8e071c1faa34b7a056865242a11094e092576823
parent78b8a0b2a2ee520f74d0c92004ed8fa20d85f9ee (diff)
update
-rw-r--r--.bashrc11
-rwxr-xr-xbin/gauth8
2 files changed, 16 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc
index 2492b1f..095c5d9 100644
--- a/.bashrc
+++ b/.bashrc
@@ -40,18 +40,20 @@ export TERMINAL=xt
alias cl='cf xft:Mono:size=12'
alias ls='ls --color=auto'
-alias ll='ls -alF'
+alias ll='ls -AlFh'
alias op='xdg-open'
alias git='hub'
+alias go='go1.14'
alias go11='go1.11.13'
alias go12='go1.12.9'
-alias go13='go.1.13.1'
+alias go13='go1.13.8'
+alias go14='go1.14'
alias gob='go build'
alias goh='p go help'
alias god='p go doc'
alias gtr='go test -run'
alias gtb='go test -cpuprofile cpu.out -memprofile mem.out -benchmem -bench'
-alias vi='vim'
+#alias vi='vim'
alias rvi='sudo vim'
alias rxt='sudo xt'
alias rxvi='sudo xvi'
@@ -82,5 +84,8 @@ export -f wsd
[ -f "$base/usr/share/fzf/key-bindings.bash" ] && . "$base/usr/share/fzf/key-bindings.bash"
unset base
+# Arch: display package to install for missing commands
+[ -f '/usr/share/doc/pkgfile/command-not-found.bash' ] && . /usr/share/doc/pkgfile/command-not-found.bash
+
# Display git status in prompt
. ~/.bash-powerline.sh
diff --git a/bin/gauth b/bin/gauth
new file mode 100755
index 0000000..6c00e1e
--- /dev/null
+++ b/bin/gauth
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Use backup from andOTP
+gpg -qd ~/otp_accounts.json.gpg |
+jq -r '.[] | "\(.label) \(.secret)"' |
+while read -r l s; do
+ echo "$l $(oathtool --totp -b "$s")"
+done