summaryrefslogtreecommitdiffstats
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-02-20 12:51:51 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-02-20 12:51:51 +0000
commit6febc8fe67ab920819dd0b2bbdddb4f84d991dc5 (patch)
treea4afa3a7fcf16b3b06e36381cb3c281da8f6b5d4 /Completion
parent16673: add langinfo module as an interface to locale information. (diff)
downloadzsh-6febc8fe67ab920819dd0b2bbdddb4f84d991dc5.tar
zsh-6febc8fe67ab920819dd0b2bbdddb4f84d991dc5.tar.gz
zsh-6febc8fe67ab920819dd0b2bbdddb4f84d991dc5.tar.bz2
zsh-6febc8fe67ab920819dd0b2bbdddb4f84d991dc5.tar.lz
zsh-6febc8fe67ab920819dd0b2bbdddb4f84d991dc5.tar.xz
zsh-6febc8fe67ab920819dd0b2bbdddb4f84d991dc5.tar.zst
zsh-6febc8fe67ab920819dd0b2bbdddb4f84d991dc5.zip
16619, 16676: add -c, -l and -p options to the dirs builtin
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_directories6
-rw-r--r--Completion/Zsh/Command/.distfiles2
-rw-r--r--Completion/Zsh/Command/_dirs8
3 files changed, 13 insertions, 3 deletions
diff --git a/Completion/Unix/Type/_directories b/Completion/Unix/Type/_directories
index cb1b3fd44..cdf76e443 100644
--- a/Completion/Unix/Type/_directories
+++ b/Completion/Unix/Type/_directories
@@ -1,3 +1,5 @@
-#compdef rmdir df du dircmp dirs
+#compdef rmdir df du dircmp
-_path_files -/ "$@"
+local expl
+
+_wanted directories expl directory _files -/ "$@" -
diff --git a/Completion/Zsh/Command/.distfiles b/Completion/Zsh/Command/.distfiles
index a3762d14a..40275afbe 100644
--- a/Completion/Zsh/Command/.distfiles
+++ b/Completion/Zsh/Command/.distfiles
@@ -1,7 +1,7 @@
DISTFILES_SRC='
.distfiles
_alias _disable _jobs_builtin _read _ttyctl _which _zstyle
-_autoload _echotc _kill _sched _typeset _zcompile
+_autoload _echotc _kill _sched _typeset _zcompile _dirs
_bindkey _echoti _limit _set _ulimit _zed
_builtin _emulate _mere _setopt _unhash _zftp
_cd _enable _precommand _source _unsetopt _zle
diff --git a/Completion/Zsh/Command/_dirs b/Completion/Zsh/Command/_dirs
new file mode 100644
index 000000000..11d9a2b40
--- /dev/null
+++ b/Completion/Zsh/Command/_dirs
@@ -0,0 +1,8 @@
+#compdef dirs
+
+_arguments -s \
+ '(-)-c[clear the directory stack]' \
+ '(* -c)-l[display directory names in full]' \
+ '(* -c)-v[display numbered list of directory stack]' \
+ '(* -c)-p[display directory entries on per line]' \
+ '(-)*:directory:_directories'