fork/wezterm
git clone https://git.julia.blue/fork/wezterm
91749f7f1
termwiz-0.23.3
1_wezterm () { 2 locali cur prev opts cmd 3COMPREPLY =() 4cur =" ${ COMP_WORDS [COMP_CWORD]} " 5prev =" ${ COMP_WORDS [COMP_CWORD-1]} " 6cmd ="" 7opts ="" 8 9for i in ${ COMP_WORDS [@]} 10do 11case " ${ cmd } , ${ i } " in 12", $ 1 " ) 13cmd ="wezterm" 14 ;; 15 wezterm,blocking-start) 16cmd ="wezterm__blocking__start" 17 ;; 18 wezterm,cli) 19cmd ="wezterm__cli" 20 ;; 21 wezterm,connect) 22cmd ="wezterm__connect" 23 ;; 24 wezterm,help) 25cmd ="wezterm__help" 26 ;; 27 wezterm,imgcat) 28cmd ="wezterm__imgcat" 29 ;; 30 wezterm,ls-fonts) 31cmd ="wezterm__ls__fonts" 32 ;; 33 wezterm,record) 34cmd ="wezterm__record" 35 ;; 36 wezterm,replay) 37cmd ="wezterm__replay" 38 ;; 39 wezterm,serial) 40cmd ="wezterm__serial" 41 ;; 42 wezterm,set-working-directory) 43cmd ="wezterm__set__working__directory" 44 ;; 45 wezterm,shell-completion) 46cmd ="wezterm__shell__completion" 47 ;; 48 wezterm,show-keys) 49cmd ="wezterm__show__keys" 50 ;; 51 wezterm,ssh) 52cmd ="wezterm__ssh" 53 ;; 54 wezterm,start) 55cmd ="wezterm__start" 56 ;; 57 wezterm__cli,activate-pane) 58cmd ="wezterm__cli__activate__pane" 59 ;; 60 wezterm__cli,activate-pane-direction) 61cmd ="wezterm__cli__activate__pane__direction" 62 ;; 63 wezterm__cli,activate-tab) 64cmd ="wezterm__cli__activate__tab" 65 ;; 66 wezterm__cli,adjust-pane-size) 67cmd ="wezterm__cli__adjust__pane__size" 68 ;; 69 wezterm__cli,get-pane-direction) 70cmd ="wezterm__cli__get__pane__direction" 71 ;; 72 wezterm__cli,get-text) 73cmd ="wezterm__cli__get__text" 74 ;; 75 wezterm__cli,help) 76cmd ="wezterm__cli__help" 77 ;; 78 wezterm__cli,kill-pane) 79cmd ="wezterm__cli__kill__pane" 80 ;; 81 wezterm__cli,list) 82cmd ="wezterm__cli__list" 83 ;; 84 wezterm__cli,list-clients) 85cmd ="wezterm__cli__list__clients" 86 ;; 87 wezterm__cli,move-pane-to-new-tab) 88cmd ="wezterm__cli__move__pane__to__new__tab" 89 ;; 90 wezterm__cli,proxy) 91cmd ="wezterm__cli__proxy" 92 ;; 93 wezterm__cli,rename-workspace) 94cmd ="wezterm__cli__rename__workspace" 95 ;; 96 wezterm__cli,send-text) 97cmd ="wezterm__cli__send__text" 98 ;; 99 wezterm__cli,set-tab-title) 100cmd ="wezterm__cli__set__tab__title" 101 ;; 102 wezterm__cli,set-window-title) 103cmd ="wezterm__cli__set__window__title" 104 ;; 105 wezterm__cli,spawn) 106cmd ="wezterm__cli__spawn" 107 ;; 108 wezterm__cli,split-pane) 109cmd ="wezterm__cli__split__pane" 110 ;; 111 wezterm__cli,tlscreds) 112cmd ="wezterm__cli__tlscreds" 113 ;; 114 wezterm__cli,zoom-pane) 115cmd ="wezterm__cli__zoom__pane" 116 ;; 117 wezterm__cli__help,activate-pane) 118cmd ="wezterm__cli__help__activate__pane" 119 ;; 120 wezterm__cli__help,activate-pane-direction) 121cmd ="wezterm__cli__help__activate__pane__direction" 122 ;; 123 wezterm__cli__help,activate-tab) 124cmd ="wezterm__cli__help__activate__tab" 125 ;; 126 wezterm__cli__help,adjust-pane-size) 127cmd ="wezterm__cli__help__adjust__pane__size" 128 ;; 129 wezterm__cli__help,get-pane-direction) 130cmd ="wezterm__cli__help__get__pane__direction" 131 ;; 132 wezterm__cli__help,get-text) 133cmd ="wezterm__cli__help__get__text" 134 ;; 135 wezterm__cli__help,help) 136cmd ="wezterm__cli__help__help" 137 ;; 138 wezterm__cli__help,kill-pane) 139cmd ="wezterm__cli__help__kill__pane" 140 ;; 141 wezterm__cli__help,list) 142cmd ="wezterm__cli__help__list" 143 ;; 144 wezterm__cli__help,list-clients) 145cmd ="wezterm__cli__help__list__clients" 146 ;; 147 wezterm__cli__help,move-pane-to-new-tab) 148cmd ="wezterm__cli__help__move__pane__to__new__tab" 149 ;; 150 wezterm__cli__help,proxy) 151cmd ="wezterm__cli__help__proxy" 152 ;; 153 wezterm__cli__help,rename-workspace) 154cmd ="wezterm__cli__help__rename__workspace" 155 ;; 156 wezterm__cli__help,send-text) 157cmd ="wezterm__cli__help__send__text" 158 ;; 159 wezterm__cli__help,set-tab-title) 160cmd ="wezterm__cli__help__set__tab__title" 161 ;; 162 wezterm__cli__help,set-window-title) 163cmd ="wezterm__cli__help__set__window__title" 164 ;; 165 wezterm__cli__help,spawn) 166cmd ="wezterm__cli__help__spawn" 167 ;; 168 wezterm__cli__help,split-pane) 169cmd ="wezterm__cli__help__split__pane" 170 ;; 171 wezterm__cli__help,tlscreds) 172cmd ="wezterm__cli__help__tlscreds" 173 ;; 174 wezterm__cli__help,zoom-pane) 175cmd ="wezterm__cli__help__zoom__pane" 176 ;; 177 wezterm__help,blocking-start) 178cmd ="wezterm__help__blocking__start" 179 ;; 180 wezterm__help,cli) 181cmd ="wezterm__help__cli" 182 ;; 183 wezterm__help,connect) 184cmd ="wezterm__help__connect" 185 ;; 186 wezterm__help,help) 187cmd ="wezterm__help__help" 188 ;; 189 wezterm__help,imgcat) 190cmd ="wezterm__help__imgcat" 191 ;; 192 wezterm__help,ls-fonts) 193cmd ="wezterm__help__ls__fonts" 194 ;; 195 wezterm__help,record) 196cmd ="wezterm__help__record" 197 ;; 198 wezterm__help,replay) 199cmd ="wezterm__help__replay" 200 ;; 201 wezterm__help,serial) 202cmd ="wezterm__help__serial" 203 ;; 204 wezterm__help,set-working-directory) 205cmd ="wezterm__help__set__working__directory" 206 ;; 207 wezterm__help,shell-completion) 208cmd ="wezterm__help__shell__completion" 209 ;; 210 wezterm__help,show-keys) 211cmd ="wezterm__help__show__keys" 212 ;; 213 wezterm__help,ssh) 214cmd ="wezterm__help__ssh" 215 ;; 216 wezterm__help,start) 217cmd ="wezterm__help__start" 218 ;; 219 wezterm__help__cli,activate-pane) 220cmd ="wezterm__help__cli__activate__pane" 221 ;; 222 wezterm__help__cli,activate-pane-direction) 223cmd ="wezterm__help__cli__activate__pane__direction" 224 ;; 225 wezterm__help__cli,activate-tab) 226cmd ="wezterm__help__cli__activate__tab" 227 ;; 228 wezterm__help__cli,adjust-pane-size) 229cmd ="wezterm__help__cli__adjust__pane__size" 230 ;; 231 wezterm__help__cli,get-pane-direction) 232cmd ="wezterm__help__cli__get__pane__direction" 233 ;; 234 wezterm__help__cli,get-text) 235cmd ="wezterm__help__cli__get__text" 236 ;; 237 wezterm__help__cli,kill-pane) 238cmd ="wezterm__help__cli__kill__pane" 239 ;; 240 wezterm__help__cli,list) 241cmd ="wezterm__help__cli__list" 242 ;; 243 wezterm__help__cli,list-clients) 244cmd ="wezterm__help__cli__list__clients" 245 ;; 246 wezterm__help__cli,move-pane-to-new-tab) 247cmd ="wezterm__help__cli__move__pane__to__new__tab" 248 ;; 249 wezterm__help__cli,proxy) 250cmd ="wezterm__help__cli__proxy" 251 ;; 252 wezterm__help__cli,rename-workspace) 253cmd ="wezterm__help__cli__rename__workspace" 254 ;; 255 wezterm__help__cli,send-text) 256cmd ="wezterm__help__cli__send__text" 257 ;; 258 wezterm__help__cli,set-tab-title) 259cmd ="wezterm__help__cli__set__tab__title" 260 ;; 261 wezterm__help__cli,set-window-title) 262cmd ="wezterm__help__cli__set__window__title" 263 ;; 264 wezterm__help__cli,spawn) 265cmd ="wezterm__help__cli__spawn" 266 ;; 267 wezterm__help__cli,split-pane) 268cmd ="wezterm__help__cli__split__pane" 269 ;; 270 wezterm__help__cli,tlscreds) 271cmd ="wezterm__help__cli__tlscreds" 272 ;; 273 wezterm__help__cli,zoom-pane) 274cmd ="wezterm__help__cli__zoom__pane" 275 ;; 276 *) 277 ;; 278esac 279done 280 281case " ${ cmd } " in 282 wezterm) 283opts ="-n -h -V --skip-config --config-file --config --help --version start blocking-start ssh serial connect ls-fonts show-keys cli imgcat set-working-directory record replay shell-completion help" 284if [[${ cur } == -* ||${ COMP_CWORD } -eq 1 ]] ;then 285COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 286return 0 287fi 288case " ${ prev } " in 289 --config-file) 290COMPREPLY =($( compgen -f " ${ cur } " ) ) 291if [[" ${ BASH_VERSINFO [0]} " -ge 4 ]];then 292compopt -o filenames 293fi 294return 0 295 ;; 296 --config) 297COMPREPLY =($( compgen -f " ${ cur } " ) ) 298return 0 299 ;; 300 *) 301COMPREPLY =() 302 ;; 303esac 304COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 305return 0 306 ;; 307 wezterm__blocking__start) 308opts ="-e -h --no-auto-connect --always-new-process --new-tab --cwd --class --workspace --position --domain --attach --help [PROG]..." 309if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 310COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 311return 0 312fi 313case " ${ prev } " in 314 --cwd) 315COMPREPLY =() 316if [[" ${ BASH_VERSINFO [0]} " -ge 4 ]];then 317compopt -o plusdirs 318fi 319return 0 320 ;; 321 --class) 322COMPREPLY =($( compgen -f " ${ cur } " ) ) 323return 0 324 ;; 325 --workspace) 326COMPREPLY =($( compgen -f " ${ cur } " ) ) 327return 0 328 ;; 329 --position) 330COMPREPLY =($( compgen -f " ${ cur } " ) ) 331return 0 332 ;; 333 --domain) 334COMPREPLY =($( compgen -f " ${ cur } " ) ) 335return 0 336 ;; 337 *) 338COMPREPLY =() 339 ;; 340esac 341COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 342return 0 343 ;; 344 wezterm__cli) 345opts ="-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" 346if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 347COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 348return 0 349fi 350case " ${ prev } " in 351 --class) 352COMPREPLY =($( compgen -f " ${ cur } " ) ) 353return 0 354 ;; 355 *) 356COMPREPLY =() 357 ;; 358esac 359COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 360return 0 361 ;; 362 wezterm__cli__activate__pane) 363opts ="-h --pane-id --help" 364if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 365COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 366return 0 367fi 368case " ${ prev } " in 369 --pane-id) 370COMPREPLY =($( compgen -f " ${ cur } " ) ) 371return 0 372 ;; 373 *) 374COMPREPLY =() 375 ;; 376esac 377COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 378return 0 379 ;; 380 wezterm__cli__activate__pane__direction) 381opts ="-h --pane-id --help Up Down Left Right Next Prev" 382if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 383COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 384return 0 385fi 386case " ${ prev } " in 387 --pane-id) 388COMPREPLY =($( compgen -f " ${ cur } " ) ) 389return 0 390 ;; 391 *) 392COMPREPLY =() 393 ;; 394esac 395COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 396return 0 397 ;; 398 wezterm__cli__activate__tab) 399opts ="-h --tab-id --tab-index --tab-relative --no-wrap --pane-id --help" 400if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 401COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 402return 0 403fi 404case " ${ prev } " in 405 --tab-id) 406COMPREPLY =($( compgen -f " ${ cur } " ) ) 407return 0 408 ;; 409 --tab-index) 410COMPREPLY =($( compgen -f " ${ cur } " ) ) 411return 0 412 ;; 413 --tab-relative) 414COMPREPLY =($( compgen -f " ${ cur } " ) ) 415return 0 416 ;; 417 --pane-id) 418COMPREPLY =($( compgen -f " ${ cur } " ) ) 419return 0 420 ;; 421 *) 422COMPREPLY =() 423 ;; 424esac 425COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 426return 0 427 ;; 428 wezterm__cli__adjust__pane__size) 429opts ="-h --pane-id --amount --help Up Down Left Right Next Prev" 430if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 431COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 432return 0 433fi 434case " ${ prev } " in 435 --pane-id) 436COMPREPLY =($( compgen -f " ${ cur } " ) ) 437return 0 438 ;; 439 --amount) 440COMPREPLY =($( compgen -f " ${ cur } " ) ) 441return 0 442 ;; 443 *) 444COMPREPLY =() 445 ;; 446esac 447COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 448return 0 449 ;; 450 wezterm__cli__get__pane__direction) 451opts ="-h --pane-id --help Up Down Left Right Next Prev" 452if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 453COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 454return 0 455fi 456case " ${ prev } " in 457 --pane-id) 458COMPREPLY =($( compgen -f " ${ cur } " ) ) 459return 0 460 ;; 461 *) 462COMPREPLY =() 463 ;; 464esac 465COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 466return 0 467 ;; 468 wezterm__cli__get__text) 469opts ="-h --pane-id --start-line --end-line --escapes --help" 470if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 471COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 472return 0 473fi 474case " ${ prev } " in 475 --pane-id) 476COMPREPLY =($( compgen -f " ${ cur } " ) ) 477return 0 478 ;; 479 --start-line) 480COMPREPLY =($( compgen -f " ${ cur } " ) ) 481return 0 482 ;; 483 --end-line) 484COMPREPLY =($( compgen -f " ${ cur } " ) ) 485return 0 486 ;; 487 *) 488COMPREPLY =() 489 ;; 490esac 491COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 492return 0 493 ;; 494 wezterm__cli__help) 495opts ="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" 496if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 497COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 498return 0 499fi 500case " ${ prev } " in 501 *) 502COMPREPLY =() 503 ;; 504esac 505COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 506return 0 507 ;; 508 wezterm__cli__help__activate__pane) 509opts ="" 510if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 511COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 512return 0 513fi 514case " ${ prev } " in 515 *) 516COMPREPLY =() 517 ;; 518esac 519COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 520return 0 521 ;; 522 wezterm__cli__help__activate__pane__direction) 523opts ="" 524if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 525COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 526return 0 527fi 528case " ${ prev } " in 529 *) 530COMPREPLY =() 531 ;; 532esac 533COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 534return 0 535 ;; 536 wezterm__cli__help__activate__tab) 537opts ="" 538if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 539COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 540return 0 541fi 542case " ${ prev } " in 543 *) 544COMPREPLY =() 545 ;; 546esac 547COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 548return 0 549 ;; 550 wezterm__cli__help__adjust__pane__size) 551opts ="" 552if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 553COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 554return 0 555fi 556case " ${ prev } " in 557 *) 558COMPREPLY =() 559 ;; 560esac 561COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 562return 0 563 ;; 564 wezterm__cli__help__get__pane__direction) 565opts ="" 566if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 567COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 568return 0 569fi 570case " ${ prev } " in 571 *) 572COMPREPLY =() 573 ;; 574esac 575COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 576return 0 577 ;; 578 wezterm__cli__help__get__text) 579opts ="" 580if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 581COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 582return 0 583fi 584case " ${ prev } " in 585 *) 586COMPREPLY =() 587 ;; 588esac 589COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 590return 0 591 ;; 592 wezterm__cli__help__help) 593opts ="" 594if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 595COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 596return 0 597fi 598case " ${ prev } " in 599 *) 600COMPREPLY =() 601 ;; 602esac 603COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 604return 0 605 ;; 606 wezterm__cli__help__kill__pane) 607opts ="" 608if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 609COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 610return 0 611fi 612case " ${ prev } " in 613 *) 614COMPREPLY =() 615 ;; 616esac 617COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 618return 0 619 ;; 620 wezterm__cli__help__list) 621opts ="" 622if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 623COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 624return 0 625fi 626case " ${ prev } " in 627 *) 628COMPREPLY =() 629 ;; 630esac 631COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 632return 0 633 ;; 634 wezterm__cli__help__list__clients) 635opts ="" 636if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 637COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 638return 0 639fi 640case " ${ prev } " in 641 *) 642COMPREPLY =() 643 ;; 644esac 645COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 646return 0 647 ;; 648 wezterm__cli__help__move__pane__to__new__tab) 649opts ="" 650if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 651COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 652return 0 653fi 654case " ${ prev } " in 655 *) 656COMPREPLY =() 657 ;; 658esac 659COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 660return 0 661 ;; 662 wezterm__cli__help__proxy) 663opts ="" 664if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 665COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 666return 0 667fi 668case " ${ prev } " in 669 *) 670COMPREPLY =() 671 ;; 672esac 673COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 674return 0 675 ;; 676 wezterm__cli__help__rename__workspace) 677opts ="" 678if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 679COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 680return 0 681fi 682case " ${ prev } " in 683 *) 684COMPREPLY =() 685 ;; 686esac 687COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 688return 0 689 ;; 690 wezterm__cli__help__send__text) 691opts ="" 692if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 693COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 694return 0 695fi 696case " ${ prev } " in 697 *) 698COMPREPLY =() 699 ;; 700esac 701COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 702return 0 703 ;; 704 wezterm__cli__help__set__tab__title) 705opts ="" 706if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 707COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 708return 0 709fi 710case " ${ prev } " in 711 *) 712COMPREPLY =() 713 ;; 714esac 715COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 716return 0 717 ;; 718 wezterm__cli__help__set__window__title) 719opts ="" 720if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 721COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 722return 0 723fi 724case " ${ prev } " in 725 *) 726COMPREPLY =() 727 ;; 728esac 729COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 730return 0 731 ;; 732 wezterm__cli__help__spawn) 733opts ="" 734if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 735COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 736return 0 737fi 738case " ${ prev } " in 739 *) 740COMPREPLY =() 741 ;; 742esac 743COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 744return 0 745 ;; 746 wezterm__cli__help__split__pane) 747opts ="" 748if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 749COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 750return 0 751fi 752case " ${ prev } " in 753 *) 754COMPREPLY =() 755 ;; 756esac 757COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 758return 0 759 ;; 760 wezterm__cli__help__tlscreds) 761opts ="" 762if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 763COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 764return 0 765fi 766case " ${ prev } " in 767 *) 768COMPREPLY =() 769 ;; 770esac 771COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 772return 0 773 ;; 774 wezterm__cli__help__zoom__pane) 775opts ="" 776if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 777COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 778return 0 779fi 780case " ${ prev } " in 781 *) 782COMPREPLY =() 783 ;; 784esac 785COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 786return 0 787 ;; 788 wezterm__cli__kill__pane) 789opts ="-h --pane-id --help" 790if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 791COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 792return 0 793fi 794case " ${ prev } " in 795 --pane-id) 796COMPREPLY =($( compgen -f " ${ cur } " ) ) 797return 0 798 ;; 799 *) 800COMPREPLY =() 801 ;; 802esac 803COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 804return 0 805 ;; 806 wezterm__cli__list) 807opts ="-h --format --help" 808if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 809COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 810return 0 811fi 812case " ${ prev } " in 813 --format) 814COMPREPLY =($( compgen -f " ${ cur } " ) ) 815return 0 816 ;; 817 *) 818COMPREPLY =() 819 ;; 820esac 821COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 822return 0 823 ;; 824 wezterm__cli__list__clients) 825opts ="-h --format --help" 826if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 827COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 828return 0 829fi 830case " ${ prev } " in 831 --format) 832COMPREPLY =($( compgen -f " ${ cur } " ) ) 833return 0 834 ;; 835 *) 836COMPREPLY =() 837 ;; 838esac 839COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 840return 0 841 ;; 842 wezterm__cli__move__pane__to__new__tab) 843opts ="-h --pane-id --window-id --new-window --workspace --help" 844if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 845COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 846return 0 847fi 848case " ${ prev } " in 849 --pane-id) 850COMPREPLY =($( compgen -f " ${ cur } " ) ) 851return 0 852 ;; 853 --window-id) 854COMPREPLY =($( compgen -f " ${ cur } " ) ) 855return 0 856 ;; 857 --workspace) 858COMPREPLY =($( compgen -f " ${ cur } " ) ) 859return 0 860 ;; 861 *) 862COMPREPLY =() 863 ;; 864esac 865COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 866return 0 867 ;; 868 wezterm__cli__proxy) 869opts ="-h --help" 870if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 871COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 872return 0 873fi 874case " ${ prev } " in 875 *) 876COMPREPLY =() 877 ;; 878esac 879COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 880return 0 881 ;; 882 wezterm__cli__rename__workspace) 883opts ="-h --workspace --pane-id --help <NEW_WORKSPACE>" 884if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 885COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 886return 0 887fi 888case " ${ prev } " in 889 --workspace) 890COMPREPLY =($( compgen -f " ${ cur } " ) ) 891return 0 892 ;; 893 --pane-id) 894COMPREPLY =($( compgen -f " ${ cur } " ) ) 895return 0 896 ;; 897 *) 898COMPREPLY =() 899 ;; 900esac 901COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 902return 0 903 ;; 904 wezterm__cli__send__text) 905opts ="-h --pane-id --no-paste --help [TEXT]" 906if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 907COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 908return 0 909fi 910case " ${ prev } " in 911 --pane-id) 912COMPREPLY =($( compgen -f " ${ cur } " ) ) 913return 0 914 ;; 915 *) 916COMPREPLY =() 917 ;; 918esac 919COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 920return 0 921 ;; 922 wezterm__cli__set__tab__title) 923opts ="-h --tab-id --pane-id --help <TITLE>" 924if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 925COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 926return 0 927fi 928case " ${ prev } " in 929 --tab-id) 930COMPREPLY =($( compgen -f " ${ cur } " ) ) 931return 0 932 ;; 933 --pane-id) 934COMPREPLY =($( compgen -f " ${ cur } " ) ) 935return 0 936 ;; 937 *) 938COMPREPLY =() 939 ;; 940esac 941COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 942return 0 943 ;; 944 wezterm__cli__set__window__title) 945opts ="-h --window-id --pane-id --help <TITLE>" 946if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 947COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 948return 0 949fi 950case " ${ prev } " in 951 --window-id) 952COMPREPLY =($( compgen -f " ${ cur } " ) ) 953return 0 954 ;; 955 --pane-id) 956COMPREPLY =($( compgen -f " ${ cur } " ) ) 957return 0 958 ;; 959 *) 960COMPREPLY =() 961 ;; 962esac 963COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 964return 0 965 ;; 966 wezterm__cli__spawn) 967opts ="-h --pane-id --domain-name --window-id --new-window --cwd --workspace --help [PROG]..." 968if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 969COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 970return 0 971fi 972case " ${ prev } " in 973 --pane-id) 974COMPREPLY =($( compgen -f " ${ cur } " ) ) 975return 0 976 ;; 977 --domain-name) 978COMPREPLY =($( compgen -f " ${ cur } " ) ) 979return 0 980 ;; 981 --window-id) 982COMPREPLY =($( compgen -f " ${ cur } " ) ) 983return 0 984 ;; 985 --cwd) 986COMPREPLY =() 987if [[" ${ BASH_VERSINFO [0]} " -ge 4 ]];then 988compopt -o plusdirs 989fi 990return 0 991 ;; 992 --workspace) 993COMPREPLY =($( compgen -f " ${ cur } " ) ) 994return 0 995 ;; 996 *) 997COMPREPLY =() 998 ;; 999esac 1000COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1001return 0 1002 ;; 1003 wezterm__cli__split__pane) 1004opts ="-h --pane-id --horizontal --left --right --top --bottom --top-level --cells --percent --cwd --move-pane-id --help [PROG]..." 1005if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1006COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1007return 0 1008fi 1009case " ${ prev } " in 1010 --pane-id) 1011COMPREPLY =($( compgen -f " ${ cur } " ) ) 1012return 0 1013 ;; 1014 --cells) 1015COMPREPLY =($( compgen -f " ${ cur } " ) ) 1016return 0 1017 ;; 1018 --percent) 1019COMPREPLY =($( compgen -f " ${ cur } " ) ) 1020return 0 1021 ;; 1022 --cwd) 1023COMPREPLY =() 1024if [[" ${ BASH_VERSINFO [0]} " -ge 4 ]];then 1025compopt -o plusdirs 1026fi 1027return 0 1028 ;; 1029 --move-pane-id) 1030COMPREPLY =($( compgen -f " ${ cur } " ) ) 1031return 0 1032 ;; 1033 *) 1034COMPREPLY =() 1035 ;; 1036esac 1037COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1038return 0 1039 ;; 1040 wezterm__cli__tlscreds) 1041opts ="-h --pem --help" 1042if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1043COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1044return 0 1045fi 1046case " ${ prev } " in 1047 *) 1048COMPREPLY =() 1049 ;; 1050esac 1051COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1052return 0 1053 ;; 1054 wezterm__cli__zoom__pane) 1055opts ="-h --pane-id --zoom --unzoom --toggle --help" 1056if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1057COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1058return 0 1059fi 1060case " ${ prev } " in 1061 --pane-id) 1062COMPREPLY =($( compgen -f " ${ cur } " ) ) 1063return 0 1064 ;; 1065 *) 1066COMPREPLY =() 1067 ;; 1068esac 1069COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1070return 0 1071 ;; 1072 wezterm__connect) 1073opts ="-h --new-tab --class --workspace --position --help <DOMAIN_NAME> [PROG]..." 1074if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1075COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1076return 0 1077fi 1078case " ${ prev } " in 1079 --class) 1080COMPREPLY =($( compgen -f " ${ cur } " ) ) 1081return 0 1082 ;; 1083 --workspace) 1084COMPREPLY =($( compgen -f " ${ cur } " ) ) 1085return 0 1086 ;; 1087 --position) 1088COMPREPLY =($( compgen -f " ${ cur } " ) ) 1089return 0 1090 ;; 1091 *) 1092COMPREPLY =() 1093 ;; 1094esac 1095COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1096return 0 1097 ;; 1098 wezterm__help) 1099opts ="start blocking-start ssh serial connect ls-fonts show-keys cli imgcat set-working-directory record replay shell-completion help" 1100if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1101COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1102return 0 1103fi 1104case " ${ prev } " in 1105 *) 1106COMPREPLY =() 1107 ;; 1108esac 1109COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1110return 0 1111 ;; 1112 wezterm__help__blocking__start) 1113opts ="" 1114if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1115COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1116return 0 1117fi 1118case " ${ prev } " in 1119 *) 1120COMPREPLY =() 1121 ;; 1122esac 1123COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1124return 0 1125 ;; 1126 wezterm__help__cli) 1127opts ="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" 1128if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1129COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1130return 0 1131fi 1132case " ${ prev } " in 1133 *) 1134COMPREPLY =() 1135 ;; 1136esac 1137COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1138return 0 1139 ;; 1140 wezterm__help__cli__activate__pane) 1141opts ="" 1142if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1143COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1144return 0 1145fi 1146case " ${ prev } " in 1147 *) 1148COMPREPLY =() 1149 ;; 1150esac 1151COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1152return 0 1153 ;; 1154 wezterm__help__cli__activate__pane__direction) 1155opts ="" 1156if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1157COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1158return 0 1159fi 1160case " ${ prev } " in 1161 *) 1162COMPREPLY =() 1163 ;; 1164esac 1165COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1166return 0 1167 ;; 1168 wezterm__help__cli__activate__tab) 1169opts ="" 1170if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1171COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1172return 0 1173fi 1174case " ${ prev } " in 1175 *) 1176COMPREPLY =() 1177 ;; 1178esac 1179COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1180return 0 1181 ;; 1182 wezterm__help__cli__adjust__pane__size) 1183opts ="" 1184if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1185COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1186return 0 1187fi 1188case " ${ prev } " in 1189 *) 1190COMPREPLY =() 1191 ;; 1192esac 1193COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1194return 0 1195 ;; 1196 wezterm__help__cli__get__pane__direction) 1197opts ="" 1198if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1199COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1200return 0 1201fi 1202case " ${ prev } " in 1203 *) 1204COMPREPLY =() 1205 ;; 1206esac 1207COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1208return 0 1209 ;; 1210 wezterm__help__cli__get__text) 1211opts ="" 1212if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1213COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1214return 0 1215fi 1216case " ${ prev } " in 1217 *) 1218COMPREPLY =() 1219 ;; 1220esac 1221COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1222return 0 1223 ;; 1224 wezterm__help__cli__kill__pane) 1225opts ="" 1226if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1227COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1228return 0 1229fi 1230case " ${ prev } " in 1231 *) 1232COMPREPLY =() 1233 ;; 1234esac 1235COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1236return 0 1237 ;; 1238 wezterm__help__cli__list) 1239opts ="" 1240if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1241COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1242return 0 1243fi 1244case " ${ prev } " in 1245 *) 1246COMPREPLY =() 1247 ;; 1248esac 1249COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1250return 0 1251 ;; 1252 wezterm__help__cli__list__clients) 1253opts ="" 1254if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1255COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1256return 0 1257fi 1258case " ${ prev } " in 1259 *) 1260COMPREPLY =() 1261 ;; 1262esac 1263COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1264return 0 1265 ;; 1266 wezterm__help__cli__move__pane__to__new__tab) 1267opts ="" 1268if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1269COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1270return 0 1271fi 1272case " ${ prev } " in 1273 *) 1274COMPREPLY =() 1275 ;; 1276esac 1277COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1278return 0 1279 ;; 1280 wezterm__help__cli__proxy) 1281opts ="" 1282if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1283COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1284return 0 1285fi 1286case " ${ prev } " in 1287 *) 1288COMPREPLY =() 1289 ;; 1290esac 1291COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1292return 0 1293 ;; 1294 wezterm__help__cli__rename__workspace) 1295opts ="" 1296if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1297COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1298return 0 1299fi 1300case " ${ prev } " in 1301 *) 1302COMPREPLY =() 1303 ;; 1304esac 1305COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1306return 0 1307 ;; 1308 wezterm__help__cli__send__text) 1309opts ="" 1310if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1311COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1312return 0 1313fi 1314case " ${ prev } " in 1315 *) 1316COMPREPLY =() 1317 ;; 1318esac 1319COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1320return 0 1321 ;; 1322 wezterm__help__cli__set__tab__title) 1323opts ="" 1324if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1325COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1326return 0 1327fi 1328case " ${ prev } " in 1329 *) 1330COMPREPLY =() 1331 ;; 1332esac 1333COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1334return 0 1335 ;; 1336 wezterm__help__cli__set__window__title) 1337opts ="" 1338if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1339COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1340return 0 1341fi 1342case " ${ prev } " in 1343 *) 1344COMPREPLY =() 1345 ;; 1346esac 1347COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1348return 0 1349 ;; 1350 wezterm__help__cli__spawn) 1351opts ="" 1352if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1353COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1354return 0 1355fi 1356case " ${ prev } " in 1357 *) 1358COMPREPLY =() 1359 ;; 1360esac 1361COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1362return 0 1363 ;; 1364 wezterm__help__cli__split__pane) 1365opts ="" 1366if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1367COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1368return 0 1369fi 1370case " ${ prev } " in 1371 *) 1372COMPREPLY =() 1373 ;; 1374esac 1375COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1376return 0 1377 ;; 1378 wezterm__help__cli__tlscreds) 1379opts ="" 1380if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1381COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1382return 0 1383fi 1384case " ${ prev } " in 1385 *) 1386COMPREPLY =() 1387 ;; 1388esac 1389COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1390return 0 1391 ;; 1392 wezterm__help__cli__zoom__pane) 1393opts ="" 1394if [[${ cur } == -* ||${ COMP_CWORD } -eq 4 ]] ;then 1395COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1396return 0 1397fi 1398case " ${ prev } " in 1399 *) 1400COMPREPLY =() 1401 ;; 1402esac 1403COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1404return 0 1405 ;; 1406 wezterm__help__connect) 1407opts ="" 1408if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1409COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1410return 0 1411fi 1412case " ${ prev } " in 1413 *) 1414COMPREPLY =() 1415 ;; 1416esac 1417COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1418return 0 1419 ;; 1420 wezterm__help__help) 1421opts ="" 1422if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1423COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1424return 0 1425fi 1426case " ${ prev } " in 1427 *) 1428COMPREPLY =() 1429 ;; 1430esac 1431COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1432return 0 1433 ;; 1434 wezterm__help__imgcat) 1435opts ="" 1436if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1437COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1438return 0 1439fi 1440case " ${ prev } " in 1441 *) 1442COMPREPLY =() 1443 ;; 1444esac 1445COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1446return 0 1447 ;; 1448 wezterm__help__ls__fonts) 1449opts ="" 1450if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1451COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1452return 0 1453fi 1454case " ${ prev } " in 1455 *) 1456COMPREPLY =() 1457 ;; 1458esac 1459COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1460return 0 1461 ;; 1462 wezterm__help__record) 1463opts ="" 1464if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1465COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1466return 0 1467fi 1468case " ${ prev } " in 1469 *) 1470COMPREPLY =() 1471 ;; 1472esac 1473COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1474return 0 1475 ;; 1476 wezterm__help__replay) 1477opts ="" 1478if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1479COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1480return 0 1481fi 1482case " ${ prev } " in 1483 *) 1484COMPREPLY =() 1485 ;; 1486esac 1487COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1488return 0 1489 ;; 1490 wezterm__help__serial) 1491opts ="" 1492if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1493COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1494return 0 1495fi 1496case " ${ prev } " in 1497 *) 1498COMPREPLY =() 1499 ;; 1500esac 1501COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1502return 0 1503 ;; 1504 wezterm__help__set__working__directory) 1505opts ="" 1506if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1507COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1508return 0 1509fi 1510case " ${ prev } " in 1511 *) 1512COMPREPLY =() 1513 ;; 1514esac 1515COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1516return 0 1517 ;; 1518 wezterm__help__shell__completion) 1519opts ="" 1520if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1521COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1522return 0 1523fi 1524case " ${ prev } " in 1525 *) 1526COMPREPLY =() 1527 ;; 1528esac 1529COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1530return 0 1531 ;; 1532 wezterm__help__show__keys) 1533opts ="" 1534if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1535COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1536return 0 1537fi 1538case " ${ prev } " in 1539 *) 1540COMPREPLY =() 1541 ;; 1542esac 1543COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1544return 0 1545 ;; 1546 wezterm__help__ssh) 1547opts ="" 1548if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1549COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1550return 0 1551fi 1552case " ${ prev } " in 1553 *) 1554COMPREPLY =() 1555 ;; 1556esac 1557COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1558return 0 1559 ;; 1560 wezterm__help__start) 1561opts ="" 1562if [[${ cur } == -* ||${ COMP_CWORD } -eq 3 ]] ;then 1563COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1564return 0 1565fi 1566case " ${ prev } " in 1567 *) 1568COMPREPLY =() 1569 ;; 1570esac 1571COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1572return 0 1573 ;; 1574 wezterm__imgcat) 1575opts ="-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]" 1576if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1577COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1578return 0 1579fi 1580case " ${ prev } " in 1581 --width) 1582COMPREPLY =($( compgen -f " ${ cur } " ) ) 1583return 0 1584 ;; 1585 --height) 1586COMPREPLY =($( compgen -f " ${ cur } " ) ) 1587return 0 1588 ;; 1589 --position) 1590COMPREPLY =($( compgen -f " ${ cur } " ) ) 1591return 0 1592 ;; 1593 --tmux-passthru) 1594COMPREPLY =($( compgen -W "disable enable detect" -- " ${ cur } " ) ) 1595return 0 1596 ;; 1597 --max-pixels) 1598COMPREPLY =($( compgen -f " ${ cur } " ) ) 1599return 0 1600 ;; 1601 --resample-format) 1602COMPREPLY =($( compgen -W "png jpeg input" -- " ${ cur } " ) ) 1603return 0 1604 ;; 1605 --resample-filter) 1606COMPREPLY =($( compgen -W "nearest triangle catmull-rom gaussian lanczos3" -- " ${ cur } " ) ) 1607return 0 1608 ;; 1609 --resize) 1610COMPREPLY =($( compgen -f " ${ cur } " ) ) 1611return 0 1612 ;; 1613 *) 1614COMPREPLY =() 1615 ;; 1616esac 1617COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1618return 0 1619 ;; 1620 wezterm__ls__fonts) 1621opts ="-h --list-system --text --codepoints --rasterize-ascii --help" 1622if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1623COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1624return 0 1625fi 1626case " ${ prev } " in 1627 --text) 1628COMPREPLY =($( compgen -f " ${ cur } " ) ) 1629return 0 1630 ;; 1631 --codepoints) 1632COMPREPLY =($( compgen -f " ${ cur } " ) ) 1633return 0 1634 ;; 1635 *) 1636COMPREPLY =() 1637 ;; 1638esac 1639COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1640return 0 1641 ;; 1642 wezterm__record) 1643opts ="-h --cwd --help [PROG]..." 1644if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1645COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1646return 0 1647fi 1648case " ${ prev } " in 1649 --cwd) 1650COMPREPLY =($( compgen -f " ${ cur } " ) ) 1651return 0 1652 ;; 1653 *) 1654COMPREPLY =() 1655 ;; 1656esac 1657COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1658return 0 1659 ;; 1660 wezterm__replay) 1661opts ="-h --explain --explain-only --cat --help <CAST_FILE>" 1662if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1663COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1664return 0 1665fi 1666case " ${ prev } " in 1667 *) 1668COMPREPLY =() 1669 ;; 1670esac 1671COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1672return 0 1673 ;; 1674 wezterm__serial) 1675opts ="-h --baud --class --position --help <PORT>" 1676if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1677COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1678return 0 1679fi 1680case " ${ prev } " in 1681 --baud) 1682COMPREPLY =($( compgen -f " ${ cur } " ) ) 1683return 0 1684 ;; 1685 --class) 1686COMPREPLY =($( compgen -f " ${ cur } " ) ) 1687return 0 1688 ;; 1689 --position) 1690COMPREPLY =($( compgen -f " ${ cur } " ) ) 1691return 0 1692 ;; 1693 *) 1694COMPREPLY =() 1695 ;; 1696esac 1697COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1698return 0 1699 ;; 1700 wezterm__set__working__directory) 1701opts ="-h --tmux-passthru --help [CWD] [HOST]" 1702if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1703COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1704return 0 1705fi 1706case " ${ prev } " in 1707 --tmux-passthru) 1708COMPREPLY =($( compgen -W "disable enable detect" -- " ${ cur } " ) ) 1709return 0 1710 ;; 1711 *) 1712COMPREPLY =() 1713 ;; 1714esac 1715COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1716return 0 1717 ;; 1718 wezterm__shell__completion) 1719opts ="-h --shell --help" 1720if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1721COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1722return 0 1723fi 1724case " ${ prev } " in 1725 --shell) 1726COMPREPLY =($( compgen -W "bash elvish fish power-shell zsh fig" -- " ${ cur } " ) ) 1727return 0 1728 ;; 1729 *) 1730COMPREPLY =() 1731 ;; 1732esac 1733COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1734return 0 1735 ;; 1736 wezterm__show__keys) 1737opts ="-h --lua --key-table --help" 1738if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1739COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1740return 0 1741fi 1742case " ${ prev } " in 1743 --key-table) 1744COMPREPLY =($( compgen -f " ${ cur } " ) ) 1745return 0 1746 ;; 1747 *) 1748COMPREPLY =() 1749 ;; 1750esac 1751COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1752return 0 1753 ;; 1754 wezterm__ssh) 1755opts ="-o -v -h --ssh-option --class --position --help <USER_AT_HOST_AND_PORT> [PROG]..." 1756if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1757COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1758return 0 1759fi 1760case " ${ prev } " in 1761 --ssh-option) 1762COMPREPLY =($( compgen -f " ${ cur } " ) ) 1763return 0 1764 ;; 1765 -o) 1766COMPREPLY =($( compgen -f " ${ cur } " ) ) 1767return 0 1768 ;; 1769 --class) 1770COMPREPLY =($( compgen -f " ${ cur } " ) ) 1771return 0 1772 ;; 1773 --position) 1774COMPREPLY =($( compgen -f " ${ cur } " ) ) 1775return 0 1776 ;; 1777 *) 1778COMPREPLY =() 1779 ;; 1780esac 1781COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1782return 0 1783 ;; 1784 wezterm__start) 1785opts ="-e -h --no-auto-connect --always-new-process --new-tab --cwd --class --workspace --position --domain --attach --help [PROG]..." 1786if [[${ cur } == -* ||${ COMP_CWORD } -eq 2 ]] ;then 1787COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1788return 0 1789fi 1790case " ${ prev } " in 1791 --cwd) 1792COMPREPLY =() 1793if [[" ${ BASH_VERSINFO [0]} " -ge 4 ]];then 1794compopt -o plusdirs 1795fi 1796return 0 1797 ;; 1798 --class) 1799COMPREPLY =($( compgen -f " ${ cur } " ) ) 1800return 0 1801 ;; 1802 --workspace) 1803COMPREPLY =($( compgen -f " ${ cur } " ) ) 1804return 0 1805 ;; 1806 --position) 1807COMPREPLY =($( compgen -f " ${ cur } " ) ) 1808return 0 1809 ;; 1810 --domain) 1811COMPREPLY =($( compgen -f " ${ cur } " ) ) 1812return 0 1813 ;; 1814 *) 1815COMPREPLY =() 1816 ;; 1817esac 1818COMPREPLY =($( compgen -W " ${ opts } " -- " ${ cur } " ) ) 1819return 0 1820 ;; 1821esac 1822} 1823 1824if [[" ${ BASH_VERSINFO [0]} " -eq 4&& " ${ BASH_VERSINFO [1]} " -ge 4 ||" ${ BASH_VERSINFO [0]} " -gt 4 ]];then 1825complete -F _wezterm-o nosort-o bashdefault-o default wezterm 1826else 1827complete -F _wezterm-o bashdefault-o default wezterm 1828fi