From b0c5f09169ac31855ebf0e93772bb57b9635b380 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 28 May 2007 22:57:39 +0000 Subject: see 23479: add initial features support for modules --- Completion/Zsh/Command/_stat | 2 +- Completion/Zsh/Command/_zstyle | 1 - Completion/Zsh/Type/_file_descriptors | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'Completion/Zsh') diff --git a/Completion/Zsh/Command/_stat b/Completion/Zsh/Command/_stat index 5ba06388b..03e42e3af 100644 --- a/Completion/Zsh/Command/_stat +++ b/Completion/Zsh/Command/_stat @@ -1,4 +1,4 @@ -#compdef stat +#compdef stat zstat local expl ret=1 diff --git a/Completion/Zsh/Command/_zstyle b/Completion/Zsh/Command/_zstyle index 4090f0ac3..2bf2709ca 100644 --- a/Completion/Zsh/Command/_zstyle +++ b/Completion/Zsh/Command/_zstyle @@ -40,7 +40,6 @@ styles=( completer c:completer condition c:bool cursor c:cursor - disable-stat c:bool disabled c:bool domains c: expand c: diff --git a/Completion/Zsh/Type/_file_descriptors b/Completion/Zsh/Type/_file_descriptors index 6d21ed2b6..82d19d62a 100644 --- a/Completion/Zsh/Type/_file_descriptors +++ b/Completion/Zsh/Type/_file_descriptors @@ -7,9 +7,9 @@ for i in {0..9}; [[ -e /dev/fd/$i ]] && fds+=( $i ) if zstyle -T ":completion:${curcontext}:" verbose && [[ -e /proc/$$/fd ]]; then zstyle -s ":completion:${curcontext}:" list-separator sep || sep=-- - if zmodload -e zsh/stat; then + if zmodload -F zsh/stat zstat; then for i in "${fds[@]}"; do - stat +link -A link /proc/$$/fd/$i + zstat +link -A link /proc/$$/fd/$i list+=( "$i $sep ${link[1]}" ) done elif (( $+commands[readlink] )); then -- cgit 1.4.1