Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _mount didn't complete devices.



Z(4):akr@serein% Src/zsh -f
serein% bindkey -e; autoload -U compinit; compinit -D
serein% zstyle ':completion*' group-name ''
serein% zstyle ':completion*:descriptions' format %d
serein% mount 
device
/dev/\*
mount point
CVS/           Config/        Etc/           Misc/          StartupFiles/  Util/          
Completion/    Doc/           Functions/     Src/           Test/          

Hm. /dev/\* is not globbed.

Index: Completion/User/_mount
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_mount,v
retrieving revision 1.4
diff -u -r1.4 _mount
--- Completion/User/_mount	2000/05/02 08:23:31	1.4
+++ Completion/User/_mount	2000/05/03 11:18:56
@@ -554,7 +554,7 @@
     _message "no device or directory with option \`-a'"
   else
     _alternative \
-        'devices:device:compadd /dev/\*' \
+        'devices:device:{compadd "$expl[@]" /dev/*}' \
 	'directories:mount point:_files -/' && ret=0
   fi
   ;;
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author