Hi there,
As the default completion of awesome is working with bash I've started
to rewrite it for ZSH and here it is:

function zsh(command, cur_pos, ncomp)
... things from bash function until local bash_cmd ...

local zsh_cmd = "/usr/bin/env zsh -c 'print -l -- 
${(M)${(k)comman...@]}[@]:#'"..words[cword_index].."*'}'"
local c, err = io.popen(zsh_cmd)

.... rest of bash function ....
end

At the moment that will just complete commands but it's easy to extend
it to complete functions, aliases, jobs, users, ... 

Greets
Christian



-- 
-----------------------------------------------------------------------
PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
Key ID: 0x61E7150B - 4EFC 3FA6 FB8E 2BD5 CA11  6F15 F557 6B5D 61E7 150B

Christian Kuka
[email protected] 

Attachment: signature.asc
Description: Digital signature

Reply via email to