Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
directory completion for a function
- X-seq: zsh-users 9899
- From: Stefan Reichör <stefan@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: directory completion for a function
- Date: Fri, 10 Feb 2006 08:40:49 +0100
- Cancel-lock: sha1:LiYlx/gltZeKy/t/Hm+0f2iHbFk=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxxx>
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