summaryrefslogtreecommitdiffstats
path: root/scripts/completions/zsh/_tdecmshell
blob: f9c62814358b2e874c1769442a741bca48a38c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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