From e80ec0d2a634e7ef3e75a61874a1f937ed15fc79 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Wed, 11 Mar 2020 15:32:15 +0100 Subject: update --- .bashrc | 11 ++++++++--- bin/gauth | 8 ++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100755 bin/gauth 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 -- cgit v1.2.3