2022-05-28 22:46:37 +03:00
|
|
|
_wezterm() {
|
2023-02-05 19:22:33 +03:00
|
|
|
local i cur prev opts cmd
|
2022-05-28 22:46:37 +03:00
|
|
|
COMPREPLY=()
|
|
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
|
cmd=""
|
|
|
|
opts=""
|
|
|
|
|
|
|
|
for i in ${COMP_WORDS[@]}
|
|
|
|
do
|
2022-10-04 18:51:01 +03:00
|
|
|
case "${cmd},${i}" in
|
|
|
|
",$1")
|
2022-05-28 22:46:37 +03:00
|
|
|
cmd="wezterm"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,cli)
|
|
|
|
cmd="wezterm__cli"
|
2022-09-20 18:46:39 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,connect)
|
|
|
|
cmd="wezterm__connect"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,help)
|
|
|
|
cmd="wezterm__help"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,imgcat)
|
|
|
|
cmd="wezterm__imgcat"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,ls-fonts)
|
|
|
|
cmd="wezterm__ls__fonts"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,record)
|
|
|
|
cmd="wezterm__record"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,replay)
|
|
|
|
cmd="wezterm__replay"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,serial)
|
|
|
|
cmd="wezterm__serial"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,set-working-directory)
|
|
|
|
cmd="wezterm__set__working__directory"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,shell-completion)
|
|
|
|
cmd="wezterm__shell__completion"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,show-keys)
|
|
|
|
cmd="wezterm__show__keys"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,ssh)
|
|
|
|
cmd="wezterm__ssh"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm,start)
|
|
|
|
cmd="wezterm__start"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2023-03-25 02:53:29 +03:00
|
|
|
wezterm__cli,activate-pane)
|
|
|
|
cmd="wezterm__cli__activate__pane"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli,activate-pane-direction)
|
|
|
|
cmd="wezterm__cli__activate__pane__direction"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2023-03-25 02:53:29 +03:00
|
|
|
wezterm__cli,activate-tab)
|
|
|
|
cmd="wezterm__cli__activate__tab"
|
|
|
|
;;
|
2023-04-18 18:34:39 +03:00
|
|
|
wezterm__cli,adjust-pane-size)
|
|
|
|
cmd="wezterm__cli__adjust__pane__size"
|
|
|
|
;;
|
2023-04-05 16:50:17 +03:00
|
|
|
wezterm__cli,get-pane-direction)
|
|
|
|
cmd="wezterm__cli__get__pane__direction"
|
|
|
|
;;
|
2023-02-05 19:22:33 +03:00
|
|
|
wezterm__cli,get-text)
|
|
|
|
cmd="wezterm__cli__get__text"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli,help)
|
|
|
|
cmd="wezterm__cli__help"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2023-03-25 01:38:42 +03:00
|
|
|
wezterm__cli,kill-pane)
|
|
|
|
cmd="wezterm__cli__kill__pane"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli,list)
|
|
|
|
cmd="wezterm__cli__list"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli,list-clients)
|
|
|
|
cmd="wezterm__cli__list__clients"
|
2022-07-22 05:43:33 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli,move-pane-to-new-tab)
|
|
|
|
cmd="wezterm__cli__move__pane__to__new__tab"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli,proxy)
|
|
|
|
cmd="wezterm__cli__proxy"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2023-04-02 17:37:45 +03:00
|
|
|
wezterm__cli,rename-workspace)
|
|
|
|
cmd="wezterm__cli__rename__workspace"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli,send-text)
|
|
|
|
cmd="wezterm__cli__send__text"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2023-04-02 09:00:00 +03:00
|
|
|
wezterm__cli,set-tab-title)
|
|
|
|
cmd="wezterm__cli__set__tab__title"
|
|
|
|
;;
|
|
|
|
wezterm__cli,set-window-title)
|
|
|
|
cmd="wezterm__cli__set__window__title"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli,spawn)
|
|
|
|
cmd="wezterm__cli__spawn"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli,split-pane)
|
|
|
|
cmd="wezterm__cli__split__pane"
|
|
|
|
;;
|
|
|
|
wezterm__cli,tlscreds)
|
|
|
|
cmd="wezterm__cli__tlscreds"
|
|
|
|
;;
|
2023-08-29 08:04:14 +03:00
|
|
|
wezterm__cli,zoom-pane)
|
|
|
|
cmd="wezterm__cli__zoom__pane"
|
|
|
|
;;
|
2023-03-25 02:53:29 +03:00
|
|
|
wezterm__cli__help,activate-pane)
|
|
|
|
cmd="wezterm__cli__help__activate__pane"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli__help,activate-pane-direction)
|
|
|
|
cmd="wezterm__cli__help__activate__pane__direction"
|
|
|
|
;;
|
2023-03-25 02:53:29 +03:00
|
|
|
wezterm__cli__help,activate-tab)
|
|
|
|
cmd="wezterm__cli__help__activate__tab"
|
|
|
|
;;
|
2023-04-18 18:34:39 +03:00
|
|
|
wezterm__cli__help,adjust-pane-size)
|
|
|
|
cmd="wezterm__cli__help__adjust__pane__size"
|
|
|
|
;;
|
2023-04-05 16:50:17 +03:00
|
|
|
wezterm__cli__help,get-pane-direction)
|
|
|
|
cmd="wezterm__cli__help__get__pane__direction"
|
|
|
|
;;
|
2023-02-05 19:22:33 +03:00
|
|
|
wezterm__cli__help,get-text)
|
|
|
|
cmd="wezterm__cli__help__get__text"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli__help,help)
|
|
|
|
cmd="wezterm__cli__help__help"
|
|
|
|
;;
|
2023-03-25 01:38:42 +03:00
|
|
|
wezterm__cli__help,kill-pane)
|
|
|
|
cmd="wezterm__cli__help__kill__pane"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli__help,list)
|
|
|
|
cmd="wezterm__cli__help__list"
|
|
|
|
;;
|
|
|
|
wezterm__cli__help,list-clients)
|
|
|
|
cmd="wezterm__cli__help__list__clients"
|
|
|
|
;;
|
|
|
|
wezterm__cli__help,move-pane-to-new-tab)
|
|
|
|
cmd="wezterm__cli__help__move__pane__to__new__tab"
|
|
|
|
;;
|
|
|
|
wezterm__cli__help,proxy)
|
|
|
|
cmd="wezterm__cli__help__proxy"
|
|
|
|
;;
|
2023-04-02 17:37:45 +03:00
|
|
|
wezterm__cli__help,rename-workspace)
|
|
|
|
cmd="wezterm__cli__help__rename__workspace"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli__help,send-text)
|
|
|
|
cmd="wezterm__cli__help__send__text"
|
|
|
|
;;
|
2023-04-02 09:00:00 +03:00
|
|
|
wezterm__cli__help,set-tab-title)
|
|
|
|
cmd="wezterm__cli__help__set__tab__title"
|
|
|
|
;;
|
|
|
|
wezterm__cli__help,set-window-title)
|
|
|
|
cmd="wezterm__cli__help__set__window__title"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli__help,spawn)
|
|
|
|
cmd="wezterm__cli__help__spawn"
|
|
|
|
;;
|
|
|
|
wezterm__cli__help,split-pane)
|
|
|
|
cmd="wezterm__cli__help__split__pane"
|
|
|
|
;;
|
|
|
|
wezterm__cli__help,tlscreds)
|
|
|
|
cmd="wezterm__cli__help__tlscreds"
|
|
|
|
;;
|
2023-08-29 08:04:14 +03:00
|
|
|
wezterm__cli__help,zoom-pane)
|
|
|
|
cmd="wezterm__cli__help__zoom__pane"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__help,cli)
|
|
|
|
cmd="wezterm__help__cli"
|
|
|
|
;;
|
|
|
|
wezterm__help,connect)
|
|
|
|
cmd="wezterm__help__connect"
|
|
|
|
;;
|
|
|
|
wezterm__help,help)
|
|
|
|
cmd="wezterm__help__help"
|
|
|
|
;;
|
|
|
|
wezterm__help,imgcat)
|
|
|
|
cmd="wezterm__help__imgcat"
|
|
|
|
;;
|
|
|
|
wezterm__help,ls-fonts)
|
|
|
|
cmd="wezterm__help__ls__fonts"
|
|
|
|
;;
|
|
|
|
wezterm__help,record)
|
|
|
|
cmd="wezterm__help__record"
|
|
|
|
;;
|
|
|
|
wezterm__help,replay)
|
|
|
|
cmd="wezterm__help__replay"
|
|
|
|
;;
|
|
|
|
wezterm__help,serial)
|
|
|
|
cmd="wezterm__help__serial"
|
|
|
|
;;
|
|
|
|
wezterm__help,set-working-directory)
|
|
|
|
cmd="wezterm__help__set__working__directory"
|
|
|
|
;;
|
|
|
|
wezterm__help,shell-completion)
|
|
|
|
cmd="wezterm__help__shell__completion"
|
|
|
|
;;
|
|
|
|
wezterm__help,show-keys)
|
|
|
|
cmd="wezterm__help__show__keys"
|
|
|
|
;;
|
|
|
|
wezterm__help,ssh)
|
|
|
|
cmd="wezterm__help__ssh"
|
|
|
|
;;
|
|
|
|
wezterm__help,start)
|
|
|
|
cmd="wezterm__help__start"
|
|
|
|
;;
|
2023-03-25 02:53:29 +03:00
|
|
|
wezterm__help__cli,activate-pane)
|
|
|
|
cmd="wezterm__help__cli__activate__pane"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__help__cli,activate-pane-direction)
|
|
|
|
cmd="wezterm__help__cli__activate__pane__direction"
|
|
|
|
;;
|
2023-03-25 02:53:29 +03:00
|
|
|
wezterm__help__cli,activate-tab)
|
|
|
|
cmd="wezterm__help__cli__activate__tab"
|
|
|
|
;;
|
2023-04-18 18:34:39 +03:00
|
|
|
wezterm__help__cli,adjust-pane-size)
|
|
|
|
cmd="wezterm__help__cli__adjust__pane__size"
|
|
|
|
;;
|
2023-04-05 16:50:17 +03:00
|
|
|
wezterm__help__cli,get-pane-direction)
|
|
|
|
cmd="wezterm__help__cli__get__pane__direction"
|
|
|
|
;;
|
2023-02-05 19:22:33 +03:00
|
|
|
wezterm__help__cli,get-text)
|
|
|
|
cmd="wezterm__help__cli__get__text"
|
|
|
|
;;
|
2023-03-25 01:38:42 +03:00
|
|
|
wezterm__help__cli,kill-pane)
|
|
|
|
cmd="wezterm__help__cli__kill__pane"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__help__cli,list)
|
|
|
|
cmd="wezterm__help__cli__list"
|
|
|
|
;;
|
|
|
|
wezterm__help__cli,list-clients)
|
|
|
|
cmd="wezterm__help__cli__list__clients"
|
|
|
|
;;
|
|
|
|
wezterm__help__cli,move-pane-to-new-tab)
|
|
|
|
cmd="wezterm__help__cli__move__pane__to__new__tab"
|
|
|
|
;;
|
|
|
|
wezterm__help__cli,proxy)
|
|
|
|
cmd="wezterm__help__cli__proxy"
|
|
|
|
;;
|
2023-04-02 17:37:45 +03:00
|
|
|
wezterm__help__cli,rename-workspace)
|
|
|
|
cmd="wezterm__help__cli__rename__workspace"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__help__cli,send-text)
|
|
|
|
cmd="wezterm__help__cli__send__text"
|
|
|
|
;;
|
2023-04-02 09:00:00 +03:00
|
|
|
wezterm__help__cli,set-tab-title)
|
|
|
|
cmd="wezterm__help__cli__set__tab__title"
|
|
|
|
;;
|
|
|
|
wezterm__help__cli,set-window-title)
|
|
|
|
cmd="wezterm__help__cli__set__window__title"
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__help__cli,spawn)
|
|
|
|
cmd="wezterm__help__cli__spawn"
|
|
|
|
;;
|
|
|
|
wezterm__help__cli,split-pane)
|
|
|
|
cmd="wezterm__help__cli__split__pane"
|
|
|
|
;;
|
|
|
|
wezterm__help__cli,tlscreds)
|
|
|
|
cmd="wezterm__help__cli__tlscreds"
|
2022-05-28 22:46:37 +03:00
|
|
|
;;
|
2023-08-29 08:04:14 +03:00
|
|
|
wezterm__help__cli,zoom-pane)
|
|
|
|
cmd="wezterm__help__cli__zoom__pane"
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
case "${cmd}" in
|
|
|
|
wezterm)
|
2022-10-04 18:51:01 +03:00
|
|
|
opts="-n -h -V --skip-config --config-file --config --help --version start ssh serial connect ls-fonts show-keys cli imgcat set-working-directory record replay shell-completion help"
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--config-file)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
2024-01-28 17:46:32 +03:00
|
|
|
if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
|
|
|
|
compopt -o filenames
|
|
|
|
fi
|
2022-05-28 22:46:37 +03:00
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--config)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli)
|
2023-08-29 08:04:14 +03:00
|
|
|
opts="-h --no-auto-start --prefer-mux --class --help list list-clients proxy tlscreds move-pane-to-new-tab split-pane spawn send-text get-text activate-pane-direction get-pane-direction kill-pane activate-pane adjust-pane-size activate-tab set-tab-title set-window-title rename-workspace zoom-pane help"
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--class)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-03-25 02:53:29 +03:00
|
|
|
wezterm__cli__activate__pane)
|
|
|
|
opts="-h --pane-id --help"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-09-20 18:46:39 +03:00
|
|
|
wezterm__cli__activate__pane__direction)
|
2023-04-05 16:50:17 +03:00
|
|
|
opts="-h --pane-id --help Up Down Left Right Next Prev"
|
2022-09-20 18:46:39 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
2023-04-05 16:50:17 +03:00
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
2022-09-20 18:46:39 +03:00
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-03-25 02:53:29 +03:00
|
|
|
wezterm__cli__activate__tab)
|
|
|
|
opts="-h --tab-id --tab-index --tab-relative --no-wrap --pane-id --help"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--tab-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--tab-index)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--tab-relative)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-04-18 18:34:39 +03:00
|
|
|
wezterm__cli__adjust__pane__size)
|
|
|
|
opts="-h --pane-id --amount --help Up Down Left Right Next Prev"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--amount)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-04-05 16:50:17 +03:00
|
|
|
wezterm__cli__get__pane__direction)
|
|
|
|
opts="-h --pane-id --help Up Down Left Right Next Prev"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-02-05 19:22:33 +03:00
|
|
|
wezterm__cli__get__text)
|
|
|
|
opts="-h --pane-id --start-line --end-line --escapes --help"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--start-line)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--end-line)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
wezterm__cli__help)
|
2023-08-29 08:04:14 +03:00
|
|
|
opts="list list-clients proxy tlscreds move-pane-to-new-tab split-pane spawn send-text get-text activate-pane-direction get-pane-direction kill-pane activate-pane adjust-pane-size activate-tab set-tab-title set-window-title rename-workspace zoom-pane help"
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-03-25 02:53:29 +03:00
|
|
|
wezterm__cli__help__activate__pane)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli__help__activate__pane__direction)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-03-25 02:53:29 +03:00
|
|
|
wezterm__cli__help__activate__tab)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-04-18 18:34:39 +03:00
|
|
|
wezterm__cli__help__adjust__pane__size)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-04-05 16:50:17 +03:00
|
|
|
wezterm__cli__help__get__pane__direction)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-02-05 19:22:33 +03:00
|
|
|
wezterm__cli__help__get__text)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli__help__help)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-03-25 01:38:42 +03:00
|
|
|
wezterm__cli__help__kill__pane)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli__help__list)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__help__list__clients)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__help__move__pane__to__new__tab)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__help__proxy)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-04-02 17:37:45 +03:00
|
|
|
wezterm__cli__help__rename__workspace)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli__help__send__text)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-04-02 09:00:00 +03:00
|
|
|
wezterm__cli__help__set__tab__title)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__help__set__window__title)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__cli__help__spawn)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__help__split__pane)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__help__tlscreds)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-08-29 08:04:14 +03:00
|
|
|
wezterm__cli__help__zoom__pane)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-03-25 01:38:42 +03:00
|
|
|
wezterm__cli__kill__pane)
|
|
|
|
opts="-h --pane-id --help"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
wezterm__cli__list)
|
|
|
|
opts="-h --format --help"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--format)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__list__clients)
|
|
|
|
opts="-h --format --help"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--format)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__move__pane__to__new__tab)
|
|
|
|
opts="-h --pane-id --window-id --new-window --workspace --help"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--window-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--workspace)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__proxy)
|
|
|
|
opts="-h --help"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-04-02 17:37:45 +03:00
|
|
|
wezterm__cli__rename__workspace)
|
|
|
|
opts="-h --workspace --pane-id --help <NEW_WORKSPACE>"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--workspace)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
wezterm__cli__send__text)
|
2022-10-04 18:51:01 +03:00
|
|
|
opts="-h --pane-id --no-paste --help [TEXT]"
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-04-02 09:00:00 +03:00
|
|
|
wezterm__cli__set__tab__title)
|
|
|
|
opts="-h --tab-id --pane-id --help <TITLE>"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--tab-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__set__window__title)
|
|
|
|
opts="-h --window-id --pane-id --help <TITLE>"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--window-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
wezterm__cli__spawn)
|
2022-10-04 18:51:01 +03:00
|
|
|
opts="-h --pane-id --domain-name --window-id --new-window --cwd --workspace --help [PROG]..."
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--domain-name)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--window-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--cwd)
|
2024-01-28 17:46:32 +03:00
|
|
|
COMPREPLY=()
|
|
|
|
if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
|
|
|
|
compopt -o plusdirs
|
|
|
|
fi
|
2022-05-28 22:46:37 +03:00
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--workspace)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__split__pane)
|
2022-10-04 18:51:01 +03:00
|
|
|
opts="-h --pane-id --horizontal --left --right --top --bottom --top-level --cells --percent --cwd --move-pane-id --help [PROG]..."
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--cells)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--percent)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--cwd)
|
2024-01-28 17:46:32 +03:00
|
|
|
COMPREPLY=()
|
|
|
|
if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
|
|
|
|
compopt -o plusdirs
|
|
|
|
fi
|
2022-05-28 22:46:37 +03:00
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--move-pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__cli__tlscreds)
|
2023-06-23 07:19:57 +03:00
|
|
|
opts="-h --pem --help"
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-08-29 08:04:14 +03:00
|
|
|
wezterm__cli__zoom__pane)
|
|
|
|
opts="-h --pane-id --zoom --unzoom --toggle --help"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--pane-id)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
wezterm__connect)
|
2024-02-03 17:35:31 +03:00
|
|
|
opts="-h --new-tab --class --workspace --position --help <DOMAIN_NAME> [PROG]..."
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--class)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--workspace)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--position)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help)
|
2022-10-04 18:51:01 +03:00
|
|
|
opts="start ssh serial connect ls-fonts show-keys cli imgcat set-working-directory record replay shell-completion help"
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__help__cli)
|
2023-08-29 08:04:14 +03:00
|
|
|
opts="list list-clients proxy tlscreds move-pane-to-new-tab split-pane spawn send-text get-text activate-pane-direction get-pane-direction kill-pane activate-pane adjust-pane-size activate-tab set-tab-title set-window-title rename-workspace zoom-pane"
|
2022-10-04 18:51:01 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-03-25 02:53:29 +03:00
|
|
|
wezterm__help__cli__activate__pane)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__help__cli__activate__pane__direction)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
2023-03-25 02:53:29 +03:00
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__cli__activate__tab)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
2022-10-04 18:51:01 +03:00
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-04-18 18:34:39 +03:00
|
|
|
wezterm__help__cli__adjust__pane__size)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-04-05 16:50:17 +03:00
|
|
|
wezterm__help__cli__get__pane__direction)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-02-05 19:22:33 +03:00
|
|
|
wezterm__help__cli__get__text)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
2023-03-25 01:38:42 +03:00
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__cli__kill__pane)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
2023-02-05 19:22:33 +03:00
|
|
|
return 0
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__help__cli__list)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__cli__list__clients)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__cli__move__pane__to__new__tab)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__cli__proxy)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-04-02 17:37:45 +03:00
|
|
|
wezterm__help__cli__rename__workspace)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__help__cli__send__text)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
2023-04-02 09:00:00 +03:00
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__cli__set__tab__title)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__cli__set__window__title)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
2022-10-04 18:51:01 +03:00
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__cli__spawn)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__cli__split__pane)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__cli__tlscreds)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2023-08-29 08:04:14 +03:00
|
|
|
wezterm__help__cli__zoom__pane)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-10-04 18:51:01 +03:00
|
|
|
wezterm__help__connect)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__help)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__imgcat)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__ls__fonts)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__record)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__replay)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__serial)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__set__working__directory)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__shell__completion)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__show__keys)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__ssh)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__help__start)
|
|
|
|
opts=""
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
wezterm__imgcat)
|
2023-07-17 20:55:53 +03:00
|
|
|
opts="-h --width --height --no-preserve-aspect-ratio --position --no-move-cursor --hold --tmux-passthru --max-pixels --no-resample --resample-format --resample-filter --resize --show-resample-timing --help [FILE_NAME]"
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--width)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--height)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
2023-07-16 02:27:52 +03:00
|
|
|
--position)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
2023-07-17 20:55:53 +03:00
|
|
|
--tmux-passthru)
|
|
|
|
COMPREPLY=($(compgen -W "disable enable detect" -- "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--max-pixels)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--resample-format)
|
|
|
|
COMPREPLY=($(compgen -W "png jpeg input" -- "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--resample-filter)
|
|
|
|
COMPREPLY=($(compgen -W "nearest triangle catmull-rom gaussian lanczos3" -- "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--resize)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__ls__fonts)
|
2022-09-21 08:02:15 +03:00
|
|
|
opts="-h --list-system --text --codepoints --rasterize-ascii --help"
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--text)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
2022-09-21 08:02:15 +03:00
|
|
|
--codepoints)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__record)
|
2023-09-29 19:29:39 +03:00
|
|
|
opts="-h --cwd --help [PROG]..."
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
2023-09-29 19:29:39 +03:00
|
|
|
--cwd)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__replay)
|
2023-04-08 18:35:14 +03:00
|
|
|
opts="-h --explain --explain-only --cat --help <CAST_FILE>"
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__serial)
|
|
|
|
opts="-h --baud --class --position --help <PORT>"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--baud)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--class)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--position)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__set__working__directory)
|
2023-07-17 20:55:53 +03:00
|
|
|
opts="-h --tmux-passthru --help [CWD] [HOST]"
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
2023-07-17 20:55:53 +03:00
|
|
|
--tmux-passthru)
|
|
|
|
COMPREPLY=($(compgen -W "disable enable detect" -- "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__shell__completion)
|
|
|
|
opts="-h --shell --help"
|
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--shell)
|
2022-09-01 18:39:11 +03:00
|
|
|
COMPREPLY=($(compgen -W "bash elvish fish power-shell zsh fig" -- "${cur}"))
|
2022-05-28 22:46:37 +03:00
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-07-22 05:43:33 +03:00
|
|
|
wezterm__show__keys)
|
2022-08-04 16:15:56 +03:00
|
|
|
opts="-h --lua --key-table --help"
|
2022-07-22 05:43:33 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
2022-08-04 16:15:56 +03:00
|
|
|
--key-table)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
2022-07-22 05:43:33 +03:00
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
wezterm__ssh)
|
2022-10-04 18:51:01 +03:00
|
|
|
opts="-o -v -h --ssh-option --class --position --help <USER_AT_HOST_AND_PORT> [PROG]..."
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--ssh-option)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
-o)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--class)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--position)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
wezterm__start)
|
2024-02-03 17:35:31 +03:00
|
|
|
opts="-e -h --no-auto-connect --always-new-process --new-tab --cwd --class --workspace --position --domain --attach --help [PROG]..."
|
2022-05-28 22:46:37 +03:00
|
|
|
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
case "${prev}" in
|
|
|
|
--cwd)
|
2024-01-28 17:46:32 +03:00
|
|
|
COMPREPLY=()
|
|
|
|
if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
|
|
|
|
compopt -o plusdirs
|
|
|
|
fi
|
2022-05-28 22:46:37 +03:00
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--class)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--workspace)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
--position)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
2023-02-05 19:22:33 +03:00
|
|
|
--domain)
|
|
|
|
COMPREPLY=($(compgen -f "${cur}"))
|
|
|
|
return 0
|
|
|
|
;;
|
2022-05-28 22:46:37 +03:00
|
|
|
*)
|
|
|
|
COMPREPLY=()
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
2024-01-28 17:46:32 +03:00
|
|
|
if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then
|
|
|
|
complete -F _wezterm -o nosort -o bashdefault -o default wezterm
|
|
|
|
else
|
|
|
|
complete -F _wezterm -o bashdefault -o default wezterm
|
|
|
|
fi
|