1 2 3 4 5
lzipUnpackCmdHook() { [[ "$1" = *.tar.lz ]] && tar --lzip -xf "$1" } unpackCmdHooks+=(lzipUnpackCmdHook)