summaryrefslogtreecommitdiffstats
path: root/scripts/completions/zsh/_tdecmshell
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:05:39 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 01:05:39 -0600
commitff94d46e423398804d2ae63faeb114c2cf604fc4 (patch)
tree4481ffd491d15ac15081cea46d7cc298ef6351a4 /scripts/completions/zsh/_tdecmshell
parentb9553cef2a3cd9f5b89c8aca6f4b7781a079dbb7 (diff)
downloadtdesdk-ff94d46e423398804d2ae63faeb114c2cf604fc4.tar.gz
tdesdk-ff94d46e423398804d2ae63faeb114c2cf604fc4.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'scripts/completions/zsh/_tdecmshell')
-rw-r--r--scripts/completions/zsh/_tdecmshell16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/completions/zsh/_tdecmshell b/scripts/completions/zsh/_tdecmshell
new file mode 100644
index 00000000..f9c62814
--- /dev/null
+++ b/scripts/completions/zsh/_tdecmshell
@@ -0,0 +1,16 @@
+#compdef tdecmshell=tdecmshell appletproxy=appletproxy
+
+local i resource tmp dir flags
+if [ "$service" = "tdecmshell" ]; then
+ resource="apps";
+ dir="/Settings";
+ flags=":t:r";
+else
+ resource="data";
+ dir="/kicker/applets";
+ flags=":t"
+fi
+for i in `tde-config --path $resource| sed -e 's/:/ /g'`; do
+ tmp=($i/$dir/**/*.desktop($flags))
+ compadd -a tmp
+done