[vriska] .bashrc.local: add functions b64enc, b64dec
This commit is contained in:
parent
3c6fc0b245
commit
9b4db0f498
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue