added some zsh plugins
This commit is contained in:
parent
0ef3bd7a55
commit
3a44873f3a
14 changed files with 209 additions and 14 deletions
17
encode64.plugin.zsh
Normal file
17
encode64.plugin.zsh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue