# (t)csh completion for herbstclient

complete herbstclient \
    'p/*/`set cmd="${COMMAND_LINE}x"; \
        set cmd=( ${cmd:s,herbstclient,,} ); \
        set cmd_nr=${#cmd} ; \
        @ cmd_nr-- ; \
        herbstclient complete_shell ${cmd_nr} ${COMMAND_LINE:s,herbstclient,,}`/'

