Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

directory completion for a function



Hi!

I created the following function to create a tarball a given directory:

function create-tgz {
    local archive_name
    archive_name="$1.tar.gz"
    archive_name=${archive_name/\//}
    tar cvfz "$archive_name" "$1"
    echo "Created archive $archive_name"
}

Now I would like to have completion for directory names for that
function.
How can I achieve that?


Stefan.



Messages sorted by: Reverse Date, Date, Thread, Author