summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_cdcd
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2002-02-14 17:56:53 +0000
committerClint Adams <clint@users.sourceforge.net>2002-02-14 17:56:53 +0000
commitd5ac256e1465daf032bea14bf07f94c3dfd2672e (patch)
tree75a7d2f28444b88db5a19486a71da5aaf19af97f /Completion/Unix/Command/_cdcd
parentunposted: METAFAQ distribution sites fixup (diff)
downloadzsh-d5ac256e1465daf032bea14bf07f94c3dfd2672e.tar
zsh-d5ac256e1465daf032bea14bf07f94c3dfd2672e.tar.gz
zsh-d5ac256e1465daf032bea14bf07f94c3dfd2672e.tar.bz2
zsh-d5ac256e1465daf032bea14bf07f94c3dfd2672e.tar.lz
zsh-d5ac256e1465daf032bea14bf07f94c3dfd2672e.tar.xz
zsh-d5ac256e1465daf032bea14bf07f94c3dfd2672e.tar.zst
zsh-d5ac256e1465daf032bea14bf07f94c3dfd2672e.zip
Gergely Nagy, 16644: completion for cdcd.
Diffstat (limited to 'Completion/Unix/Command/_cdcd')
-rw-r--r--Completion/Unix/Command/_cdcd101
1 files changed, 101 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_cdcd b/Completion/Unix/Command/_cdcd
new file mode 100644
index 000000000..de27724dc
--- /dev/null
+++ b/Completion/Unix/Command/_cdcd
@@ -0,0 +1,101 @@
+#compdef cdcd
+
+typeset -A opt_args
+
+_cdcd_tracks ()
+{
+ cdcd info | sed -e 1,2d -e 4d -e "s,Total tracks: *\([0-9]\+\).*,\1,"