I use avfs to conveniently look inside archives from a shell prompt. This creates a view of the whole directory tree under
~/.avfs (so if a file
/path/to/foo exists then it's also visible as
~/.avfs/path/to/foo), and additionally, if
/path/to/foo is an archive file then
~/.avfs/path/to/foo# is a directory which is a view of the toplevel directory of the content of the archive.
When I want to explore the inside of an archive, it's a bit cumbersome: I have to switch into the
~/.avfs hierarchy, and the completion of
cd doesn't help me to type those archive names and add a
# at the end.
I'd like to be able to run
acd foo.zip from
/path/to/dir and run
cd ~/.avfs/path/to/dir#. With decent completion for
acd. How can I do this?