mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
No commits in common. "2b5f43668cf476ff8d04506b9dd9e38b53619979" and "ca642f0d143091ae1ee0540822f7bb3c3784e144" have entirely different histories.
2b5f43668c
...
ca642f0d14
2 changed files with 0 additions and 24 deletions
|
@ -102,25 +102,3 @@ sudoedit() {
|
|||
}
|
||||
alias sudoe="sudoedit"
|
||||
alias sue="sudoedit"
|
||||
|
||||
# gpg-crypt {{{
|
||||
# Encrypt the given file or directory to a given recipient
|
||||
function gpg-encrypt() {
|
||||
if [ "$#" -ne 2 ]; then
|
||||
echo "Usage: $0 FILE/DIRECTORY RECIPIENT" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
tar -c `basename $1` | gpg --encrypt --recipient $2 -o `basename $1`.tar.gpg
|
||||
}
|
||||
|
||||
# Decrypt the given tar.gpg file
|
||||
function gpg-decrypt() {
|
||||
if [ "$#" -ne 1 ] || [[ "$1" != *.tar.gpg ]]; then
|
||||
echo "Usage: $0 FILE.tar.gpg" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
gpg --quiet --decrypt $1 | tar -x
|
||||
}
|
||||
# }}}
|
||||
|
|
|
@ -112,8 +112,6 @@ _plugin completions 'zsh-users/zsh-completions' "$_checkout_latest_version"
|
|||
fi
|
||||
# }}}
|
||||
|
||||
_plugin gitio 'denysdovhan/gitio-zsh'
|
||||
|
||||
# _plugin fzf 'junegunn/fzf' "$_checkout_latest_version" \
|
||||
# build='./install --bin' \
|
||||
# after_load='plugin-cfg-path path prepend bin' \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue