Miscellaneous stuff for deco users

Extractor wrappers

A handy shell snippet

Add the following code to your POSIX-compatible shell’s initialization file, ~/.bashrc in the case of bash:

d()
	{
	d=`deco "$@" && echo .` &&
	d=${d%?.} &&
	cat <<-EOF &&
		$d
	EOF
	case $d in */) cd -- "$d" && ls; esac
	}

You can then e. g. run d -u archive.tar to extract then unlink archive.tar and, if applicable, cd into (presumably) archive/ and call ls.

Note that deco 1.3 or later is needed for this to work.