dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0d5c4324f37c292a214bb6a8081c2ec3c369a81a
parent 85a05987a8efa1c4063616aa127e07fee8a1afb2
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sun,  5 May 2019 16:56:17 +0200

commonprofile: simplified otp alias

Former-commit-id: 5678e882b72aa75b539339da991b70fba9e81168
Diffstat:
Mshell/commonprofile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell/commonprofile b/shell/commonprofile @@ -152,7 +152,7 @@ todos() { if [ -z "$1" ]; then 1="."; fi; grep -rnw "$1" -e "TODO"; } # Fi find_in_files() { grep -rnw "$1" -e "$2"; } # Search for text in files hr() { for ((i=0; i<$(tput cols); i++)); do echo -n "#"; done; echo; } # Insert a <hr> in the terminal vimq() { vim -v -q <($(fc -nl -1)); } # Load results of last command (often ag) in vim quickfix -otp() { oathtool --totp --digits=6 -s '30s' -b "$1"; } # Generate OTP passwords (google authenticator alternative) +otp() { oathtool --totp --base32 "$1"; } # Generate OTP passwords (google authenticator alternative) # Pip3 upgrade packages pip3_upgrade() { pip3 list --outdated | cut -d ' ' -f1 | xargs -n1 pip3 install -U; }