[vriska] .bashrc.local: add functions b64enc, b64dec

This commit is contained in:
Lexi Stelter 2019-10-02 14:29:11 +02:00
parent 3c6fc0b245
commit 9b4db0f498
1 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,16 @@ alias passheinlein="PASSWORD_STORE_DIR=~/.password-store-heinlein pass"
alias git-fetchboth="git fetch origin master:master; git fetch origin develop:develop"
# Shortcuts to encode/decode strings with base64
function b64enc {
echo -n "$1" | base64 -w 0
echo
}
function b64dec {
echo -n "$1" | base64 -d
echo
}
# Assume colors are set in global .bashrc:
# - TRED
# - TGREEN