1 autoload -U zsh-mime-setup ; zsh-mime-setup
3 mime_compressed_handler() {
4 local tmp=`mktemp -t zsh-mime`
8 (bz2) bunzip2 < $1 > $tmp ;;
9 (gz) gunzip < $1 > $tmp ;;
10 (xz) unxz < $1 > $tmp ;;
11 (zst) unzstd < $1 > $tmp ;;
17 alias -s bz2=mime_compressed_handler
18 alias -s gz=mime_compressed_handler
19 alias -s xz=mime_compressed_handler
20 alias -s zst=mime_compressed_handler