From 9b4db0f49871a50e46a7fbccb1508b93168abe5f Mon Sep 17 00:00:00 2001 From: Lexi Stelter Date: Wed, 2 Oct 2019 14:29:11 +0200 Subject: [PATCH] [vriska] .bashrc.local: add functions b64enc, b64dec --- local/.bashrc.vriska | 10 ++++++++++ 1 file changed, 10 insertions(+) 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