diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-26 11:07:42 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-26 11:07:42 +0000 |
commit | f77d7a9123b6169803d3379905c015cf0cb8cb49 (patch) | |
tree | e91558e3e8615f66228f110ea610024d16da65d2 /Completion/Cvs/_cvs_files_removed | |
parent | 9b20f822d01a0c33e6321deb42d6d59e818d6c5a (diff) | |
download | zsh-f77d7a9123b6169803d3379905c015cf0cb8cb49.tar.gz zsh-f77d7a9123b6169803d3379905c015cf0cb8cb49.tar.xz zsh-f77d7a9123b6169803d3379905c015cf0cb8cb49.zip |
zsh-workers/7495
Diffstat (limited to 'Completion/Cvs/_cvs_files_removed')
-rw-r--r-- | Completion/Cvs/_cvs_files_removed | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Completion/Cvs/_cvs_files_removed b/Completion/Cvs/_cvs_files_removed new file mode 100644 index 000000000..d5b9252f9 --- /dev/null +++ b/Completion/Cvs/_cvs_files_removed @@ -0,0 +1,15 @@ +#autoload + +local qpref pref entries +_cvs_setup_prefix +if [[ -d ${pref}CVS ]]; then + _cvs_setup_allentries + setopt localoptions unset + local omit + omit=(${pref}*(D:t)) + eval 'entries=(${entries:#('${(j:|:)${(@)omit:q}}')})' + compadd "$@" -P "$qpref" - ${entries:q} || + _cvs_directories "$@" +else + _files "$@" +fi |