Add little snippet to decompress zlib files from bash
This commit is contained in:
parent
06a462b1d2
commit
542550031f
|
@ -39,3 +39,8 @@ function tmux-main() {
|
|||
select-layout even-vertical \; \
|
||||
attach-session -t main
|
||||
}
|
||||
|
||||
# https://unix.stackexchange.com/questions/22834/how-to-uncompress-zlib-data-in-unix
|
||||
function zlibd() {
|
||||
printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - "$@" | gzip -dc
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue