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

[PATCH] _kfmclient openProfile



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It tries more intelligen way to find Konqueror profiles.

- -andrey

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     22 Mar 2005 19:58:21 -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
   ;;
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCQHlKR6LMutpd94wRAprFAKDIl2ksER9vMW566mOTYjhinMfgdQCeJVHG
qEBnqSs5lv/s6mkHPV20VyI=
=0IFf
-----END PGP SIGNATURE-----



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