From 0e9ddbb0bf0cd34500155ea4b03de2e2a38d8ab2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 16 Mar 2020 23:33:42 +0100 Subject: Well I'm using Arch again --- .oh-my-zsh/plugins/encode64/README.md | 69 ------------------------- .oh-my-zsh/plugins/encode64/encode64.plugin.zsh | 17 ------ 2 files changed, 86 deletions(-) delete mode 100644 .oh-my-zsh/plugins/encode64/README.md delete mode 100644 .oh-my-zsh/plugins/encode64/encode64.plugin.zsh (limited to '.oh-my-zsh/plugins/encode64') 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 -- cgit v1.2.3