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

Re: PATCH: file:/// in _urls



> Unfortunately, file://localhost/ doesn't work.

This deals with that special case.

Index: Completion/Unix/Type/_urls
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_urls,v
retrieving revision 1.1.4.2
diff -u -r1.1.4.2 _urls
--- Completion/Unix/Type/_urls	6 Aug 2002 20:43:02 -0000	1.1.4.2
+++ Completion/Unix/Type/_urls	6 Aug 2002 21:05:33 -0000
@@ -91,6 +91,7 @@
     fi
   ;;
   file)
+    [[ -prefix //localhost/ ]] && compset -P //localhost
     [[ -prefix /// ]] && compset -P //
     if ! compset -P //; then
       _tags -C file files



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