added some zsh plugins

This commit is contained in:
JMARyA 2020-11-09 08:05:39 +01:00
parent 0ef3bd7a55
commit 3a44873f3a
No known key found for this signature in database
GPG key ID: 19BD48AEE60FA00B
14 changed files with 209 additions and 14 deletions

17
encode64.plugin.zsh Normal file
View file

@ -0,0 +1,17 @@
encode64() {
if [[ $# -eq 0 ]]; then
cat | base64
else
printf '%s' $1 | base64
fi
}
decode64() {
if [[ $# -eq 0 ]]; then
cat | base64 --decode
else
printf '%s' $1 | base64 --decode
fi
}
alias e64=encode64
alias d64=decode64