summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:19:22 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:19:22 +0000
commit888ff2fc2c5830d3fc6216439f321b9410b9d0e7 (patch)
treeb1b6b25f4092c28c009a0f41bd68d738c1d7b071 /Completion
parent01fa693061d3cb414758767925a1540a3adf7668 (diff)
downloadzsh-888ff2fc2c5830d3fc6216439f321b9410b9d0e7.tar.gz
zsh-888ff2fc2c5830d3fc6216439f321b9410b9d0e7.tar.xz
zsh-888ff2fc2c5830d3fc6216439f321b9410b9d0e7.zip
moved to Completion/Zsh/Type/_file_descriptors
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_file_descriptors23
1 files changed, 0 insertions, 23 deletions
diff --git a/Completion/Core/_file_descriptors b/Completion/Core/_file_descriptors
deleted file mode 100644
index 56f6905c6..000000000
--- a/Completion/Core/_file_descriptors
+++ /dev/null
@@ -1,23 +0,0 @@
-#autoload
-
-local i fds expl list link
-
-for i in {0..9}; [[ -e /dev/fd/$i ]] && fds=( ${fds[@]} $i )
-
-if zstyle -T ":completion:${curcontext}" verbose && [[ -e /proc/$$/fd ]]; then
-  if zmodload -e zsh/stat; then
-    for i in "${fds[@]}"; do
-      stat +link -A link /proc/$$/fd/$i
-      list=( ${list[@]} "$i -- ${link[1]}" )
-    done
-  elif (( $+commands[readlink] )); then
-    for i in "${fds[@]}"; list=( ${list[@]} "$i -- $(readlink /proc/$$/fd/$i)" )
-  else
-    for i in "${fds[@]}"; do
-      list=( ${list[@]} "$i -- $(ls -l /proc/$$/fd/$i|sed 's/.*-> //' )" )
-    done
-  fi
-  _wanted file-descriptors expl 'file descriptors' compadd "$@" -d list -a fds
-else
-  _wanted file-descriptors expl 'file descriptors' compadd "$@" -a fds
-fi