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

PATCH: _urls with https://



Patch from R.Ramkumar.

Index: Completion/Unix/Type/_urls
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_urls,v
retrieving revision 1.10
diff -u -r1.10 _urls
--- Completion/Unix/Type/_urls	27 Jun 2005 14:45:33 -0000	1.10
+++ Completion/Unix/Type/_urls	30 Sep 2006 21:12:58 -0000
@@ -66,7 +66,7 @@
       compset -S '[^:/]*' && compstate[to_end]=''
       [[ -d $urls/bookmark ]] &&
         compadd "$expl[@]" bookmark: && ret=0
-      compadd "$expl[@]" file: ftp:// gopher:// http:// && ret=0
+      compadd "$expl[@]" file: ftp:// gopher:// http:// https:// && ret=0
     done
     (( ret )) || return 0
   done
@@ -75,7 +75,7 @@
 scheme="$match[1]"
 
 case "$scheme" in
-  http|ftp|gopher)
+  http(|s)|ftp|gopher)
     if ! compset -P //; then
       _wanted -C "$scheme" prefixes expl 'end of prefix' compadd -S '' "$@" //
       return



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