dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

commit f7e709088a53b5e685fb7fbfb18d56194b22adf0
parent d47a0d332f010a9d7b47899d697bdf95a2d54f22
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Tue, 19 Jun 2018 14:37:09 +0300

aliases: Add `zlibtogz` function

Diffstat:
.aliases | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/.aliases b/.aliases @@ -104,3 +104,8 @@ archive() { DEST=$(dirname ~/Vault/mail/$1) archivemail -d 30 -o $DEST $1 } + +# Add gzip header for zlib compressed files +zlibtogz(){ + printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - $@ +}