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

[PATCH] more general kfmclient openProfile completion



Index: Completion/X/Command/_kfmclient
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_kfmclient,v
retrieving revision 1.4
diff -u -p -r1.4 _kfmclient
--- Completion/X/Command/_kfmclient     5 Mar 2005 10:31:21 -0000       1.4
+++ Completion/X/Command/_kfmclient     7 Mar 2005 19:05:32 -0000
@@ -73,8 +73,9 @@ case $line[1] in
     _webbrowser
     return
   elif [[ $state = firstarg ]]; then
+    local appdata=${$(kde-config --path data 
2> /dev/null):-~/.kde/share/apps/}
     _wanted profile expl 'Konqueror profile' \
-      compadd -- ~/.kde/share/apps/konqueror/profiles/*(:t)
+      compadd -- ${(s/:/)^${appdata}}konqueror/profiles/*(:t)
     return
   fi
   ;;



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