From: "Stefan Reichör" <stefan@xsteve.at>
To: zsh-users@sunsite.dk
Subject: directory completion for a function
Date: Fri, 10 Feb 2006 08:40:49 +0100 [thread overview]
Message-ID: <m0fymrlkzi.fsf@ger-fae.com> (raw)
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.
next reply other threads:[~2006-02-10 7:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-10 7:40 Stefan Reichör [this message]
2006-02-10 7:51 ` Frank Terbeck
2006-02-10 8:05 ` Frank Terbeck
2006-02-20 14:59 ` Marc Chantreux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m0fymrlkzi.fsf@ger-fae.com \
--to=stefan@xsteve.at \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).