summaryrefslogtreecommitdiffstats
path: root/scripts/completions/zsh/_dcop
blob: c3fe6a50d05e02109a65025ef7f387b520de47bc (plain)
1
2
3
4
5
6
7
8
9
10
11
#compdef dcop

local tmp 

if [ CURRENT -eq 4 ]; then
    tmp=(`$words[1,CURRENT-1] 2>/dev/null | sed -e "s,.* \(.*\)(.*,\1,"`)
else
    tmp=(`$words[1,CURRENT-1] 2>/dev/null | sed -e "s,(default),default,"`)
fi

compadd -a tmp