From 3b4ca4aa713c64035bbfcbabb5633da3c3005a1d Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Thu, 12 Dec 2019 14:50:06 +0200 Subject: [PATCH] Added encrypt zstd tar function Signed-off-by: Marko Korhonen --- home/.config/zsh/03-functions.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home/.config/zsh/03-functions.zsh b/home/.config/zsh/03-functions.zsh index a466076..7d1fe07 100644 --- a/home/.config/zsh/03-functions.zsh +++ b/home/.config/zsh/03-functions.zsh @@ -138,8 +138,10 @@ ls() { ls_extended $@ } # default icon for notify-send notify-send() { /usr/bin/notify-send --icon=alarm $@ } -# Burn bootable iso -#burniso() { dd if=$1 | pv -s $(du -h $1 | awk '{print $1;}' | dd of=$2 bs=4M } + +# encrypted tar's with zstd compression +cgpgtar() { tar cf - --zstd $1 | gpg -e -z 0 > $1.tar.zst.gpg } +xgpgtar() { gpg -d $1 | tar x --zstd } # colorise output cvs() { grc cvs $@ }