Skip to content

Instantly share code, notes, and snippets.

@smblott-github
smblott-github / _insync-headless
Last active March 16, 2018 03:06
Simple zsh completion for insync, insync-headless and insync-portable. Grab this, name it "_insync-headless" and put it in some suitable location for zsh completion functions. And good luck. Zsh completion is a mystery to me.
#compdef insync-headless insync-portable insync
if [[ $CURRENT == 2 ]]
then
_values 'commands' \
'accept_all_new_shares[Accept all new shares file to given account]' \
'accept_share[Accept shared file to given account]' \
'add_account[Add account to Insync]' \
'force_sync[Force sync item]' \
'get_account_information[Show information for connected acounts]' \