aboutsummaryrefslogtreecommitdiff
path: root/.oh-my-zsh/plugins/encode64
diff options
context:
space:
mode:
authorMarvin Borner2020-03-16 23:33:42 +0100
committerMarvin Borner2020-03-16 23:33:42 +0100
commit0e9ddbb0bf0cd34500155ea4b03de2e2a38d8ab2 (patch)
tree719da1c7fe5dabb872fe9ff1582c39b55ccd488e /.oh-my-zsh/plugins/encode64
parente5d38956336ab1be954bdbd12808c5f98f8bd925 (diff)
Well I'm using Arch again
Diffstat (limited to '.oh-my-zsh/plugins/encode64')
-rw-r--r--.oh-my-zsh/plugins/encode64/README.md69
-rw-r--r--.oh-my-zsh/plugins/encode64/encode64.plugin.zsh17
2 files changed, 0 insertions, 86 deletions
diff --git a/.oh-my-zsh/plugins/encode64/README.md b/.oh-my-zsh/plugins/encode64/README.md
deleted file mode 100644
index 9850da8..0000000
--- a/.oh-my-zsh/plugins/encode64/README.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# encode64
-
-Alias plugin for encoding or decoding using `base64` command
-
-## Functions and Aliases
-
-| Function | Alias | Description |
-| ---------- | ----- | ------------------------------ |
-| `encode64` | `e64` | Encodes given data to base64 |
-| `decode64` | `d64` | Decodes given data from base64 |
-
-## Enabling plugin
-
-1. Edit your `.zshrc` file and add `encode64` to the list of plugins:
-
- ```sh
- plugins=(
- # ...other enabled plugins
- encode64
- )
- ```
-
-2. Restart your terminal session or reload configuration by running:
-
- ```sh
- source ~/.zshrc
- ```
-
-## Usage and examples
-
-### Encoding
-
-- From parameter
-
- ```console
- $ encode64 "oh-my-zsh"
- b2gtbXktenNo
- $ e64 "oh-my-zsh"
- b2gtbXktenNo
- ```
-
-- From piping
-
- ```console
- $ echo "oh-my-zsh" | encode64
- b2gtbXktenNo==
- $ echo "oh-my-zsh" | e64
- b2gtbXktenNo==
- ```
-
-### Decoding
-
-- From parameter
-
- ```console
- $ decode64 b2gtbXktenNo
- oh-my-zsh%
- $ d64 b2gtbXktenNo
- oh-my-zsh%
- ```
-
-- From piping
-
- ```console
- $ echo "b2gtbXktenNoCg==" | decode64
- oh-my-zsh
- $ echo "b2gtbXktenNoCg==" | decode64
- oh-my-zsh
- ```
diff --git a/.oh-my-zsh/plugins/encode64/encode64.plugin.zsh b/.oh-my-zsh/plugins/encode64/encode64.plugin.zsh
deleted file mode 100644
index 979e067..0000000
--- a/.oh-my-zsh/plugins/encode64/encode64.plugin.zsh
+++ /dev/null
@@ -1,17 +0,0 @@
-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