zsh-workers
 help / color / mirror / code / Atom feed
a3126d7812bbffa4039a437e3906247234a7940d blob 1054 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
#autoload

local i expl link sep cmd
local -a fds list

if zstyle -T ":completion:${curcontext}:" verbose && [ -h /proc/$$/fd/<->([1]) ]; then
  zstyle -s ":completion:${curcontext}:" list-separator sep || sep=--

  if zmodload -F zsh/stat b:zstat; then
    cmd='zstat +link -A link $REPLY; link=$link[1]'
  elif (( $+commands[readlink] )); then
    cmd='link=$(readlink $REPLY)'
  else
    cmd='link=$(ls -l $REPLY|sed "s/.*-> //" )'
  fi

  # Filter out the fd for the dir opened during the glob (/proc/$$/fd)
  : /proc/$$/fd/<->(e,$cmd'
                       if [[ $link == /proc/$$/fd ]]; then
                         false
                       else
                         fds+=( $REPLY:t )
                         list+=( "$REPLY:t $sep $link" )
                       fi
                      ',)

  if (( $list[(I)<-> $sep ?*] )); then
    _wanted file-descriptors expl 'file descriptor' compadd "$@" -d list -a - fds
    return
  fi
else
  fds=( /dev/fd/<->(N:t) )
fi

_wanted file-descriptors expl 'file descriptor' compadd -a "$@" - fds
debug log:

solving 38e2bf5 ...
found 38e2bf5 in https://inbox.vuxu.org/zsh-workers/1330281433-23949-1-git-send-email-mikachu@gmail.com/
found 3e251b7 in https://git.vuxu.org/mirror/zsh/
preparing index
index prepared:
100644 3e251b73345490c9e14e9cd588f68c99300f4478	Completion/Zsh/Type/_file_descriptors

applying [1/1] https://inbox.vuxu.org/zsh-workers/1330281433-23949-1-git-send-email-mikachu@gmail.com/
diff --git a/Completion/Zsh/Type/_file_descriptors b/Completion/Zsh/Type/_file_descriptors
index 3e251b7..38e2bf5 100644

Checking patch Completion/Zsh/Type/_file_descriptors...
Applied patch Completion/Zsh/Type/_file_descriptors cleanly.

index at:
100644 a3126d7812bbffa4039a437e3906247234a7940d	Completion/Zsh/Type/_file_descriptors

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).