#compdef monitor-setup # ZSH completion for monitor-setup # Place this file in /usr/local/share/zsh/site-functions/_monitor-setup _monitor-setup() { local curcontext="$curcontext" state line typeset -A opt_args _arguments -C \ '1: :->command' \ && return 0 case $state in command) local -a commands commands=( 'status:Show current monitor status' 'list:List all detected monitors' 'swap:Swap left/right external monitors' 'reset:Reset to automatic configuration' 'help:Show help information' ) _describe -t commands 'monitor-setup command' commands ;; esac return 0 } _monitor-setup "$@"