diff --git a/local/.bashrc.vriska b/local/.bashrc.vriska index a087c86..ce75177 100644 --- a/local/.bashrc.vriska +++ b/local/.bashrc.vriska @@ -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