diff options
-rw-r--r-- | config/essentials/zsh/functions.zsh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index 0f73a96..a9293c4 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -136,3 +136,13 @@ gpg_backup () tar czf gpg_backup.tar.gz {public,private,trust}.asc shred -uz {public,private,trust}.asc } + +gpg_import () +{ + tar xf $1 + shred -uz $1 + gpg --import public.asc + gpg --import-ownertrust trust.asc + gpg --import private.asc + shred -uz {public,private,trust}.asc +} |