Sample Header Ad - 728x90

zsh completion and unknow bzr commands

3 votes
1 answer
320 views
ZSH's Bazaar completion does not offer any expansion/completion when it does not know the bzr subcommand I am using. In my case, I use bzr qlog but ZSH's /usr/share/zsh/5.0.2/functions/_bzr does not know about this command. As far as I can tell it ends up returning nothing from completion function: (*) _message "unknown bzr command completion: $cmd" return 1 ;; At this point I have employed a hack like this to make it complete with file names: (*) _message "unknown bzr command completion: $cmd" args+=( '*:FILE:_files' ) #return 1 ;; Is there any better way how to do this?
Asked by wilx (618 rep)
Dec 11, 2013, 09:37 AM
Last activity: Dec 12, 2013, 01:16 AM