From e7bfaaa2fb670924f9ce4b7dc0839b740b8cda1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20M=C3=A4der?= <maeder@phys.ethz.ch> Date: Fri, 20 Sep 2024 11:48:03 +0200 Subject: [PATCH] Add bash completions for various local tools and source automatically --- profile/_assets/completions/broot_bash | 90 + profile/_assets/completions/btm_bash | 102 + profile/_assets/completions/delta_bash | 383 ++ profile/_assets/completions/dog_bash | 48 + profile/_assets/completions/dust_bash | 188 + profile/_assets/completions/eza_bash | 76 + .../init_fzf_bash.sh => completions/fzf_bash} | 0 profile/_assets/completions/hyperfine_bash | 182 + profile/_assets/completions/lsd_bash | 106 + profile/_assets/completions/pdu_bash | 66 + profile/_assets/completions/sd_bash | 54 + profile/_assets/completions/tldr_bash | 34 + profile/_assets/completions/uv_bash | 3994 +++++++++++++++++ profile/_assets/completions/xh_bash | 166 + profile/_assets/completions/zellij_bash | 1883 ++++++++ profile/rda/envrcd.d/50-complete | 14 +- 16 files changed, 7381 insertions(+), 5 deletions(-) create mode 100644 profile/_assets/completions/broot_bash create mode 100644 profile/_assets/completions/btm_bash create mode 100644 profile/_assets/completions/delta_bash create mode 100644 profile/_assets/completions/dog_bash create mode 100644 profile/_assets/completions/dust_bash create mode 100644 profile/_assets/completions/eza_bash rename profile/_assets/{fzf/init_fzf_bash.sh => completions/fzf_bash} (100%) create mode 100644 profile/_assets/completions/hyperfine_bash create mode 100644 profile/_assets/completions/lsd_bash create mode 100644 profile/_assets/completions/pdu_bash create mode 100644 profile/_assets/completions/sd_bash create mode 100644 profile/_assets/completions/tldr_bash create mode 100644 profile/_assets/completions/uv_bash create mode 100644 profile/_assets/completions/xh_bash create mode 100644 profile/_assets/completions/zellij_bash diff --git a/profile/_assets/completions/broot_bash b/profile/_assets/completions/broot_bash new file mode 100644 index 0000000..7b2d9f5 --- /dev/null +++ b/profile/_assets/completions/broot_bash @@ -0,0 +1,90 @@ +_broot() { + local i cur prev opts cmd + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${cmd},${i}" in + ",$1") + cmd="broot" + ;; + *) + ;; + esac + done + + case "${cmd}" in + broot) + opts="-d -D -f -F -g -G -h -H -i -I -p -P -s -S -w -W -t -T -c --help --version --conf --dates --no-dates --only-folders --no-only-folders --show-root-fs --show-git-info --no-show-git-info --git-status --hidden --no-hidden --git-ignored --no-git-ignored --permissions --no-permissions --sizes --no-sizes --sort-by-count --sort-by-date --sort-by-size --sort-by-type --no-tree --tree --sort-by-type-dirs-first --sort-by-type-dirs-last --no-sort --whale-spotting --no-whale-spotting --trim-root --no-trim-root --outcmd --verb-output --cmd --color --height --install --set-install-state --print-shell-function --listen --get-root --write-default-conf --send [ROOT]" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --conf) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --outcmd) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --verb-output) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cmd) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto yes no" -- "${cur}")) + return 0 + ;; + --height) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --set-install-state) + COMPREPLY=($(compgen -W "undefined refused installed" -- "${cur}")) + return 0 + ;; + --print-shell-function) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --listen) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --write-default-conf) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --send) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then + complete -F _broot -o nosort -o bashdefault -o default broot +else + complete -F _broot -o bashdefault -o default broot +fi diff --git a/profile/_assets/completions/btm_bash b/profile/_assets/completions/btm_bash new file mode 100644 index 0000000..5eb78a4 --- /dev/null +++ b/profile/_assets/completions/btm_bash @@ -0,0 +1,102 @@ +_btm() { + local i cur prev opts cmd + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${cmd},${i}" in + ",$1") + cmd="btm" + ;; + *) + ;; + esac + done + + case "${cmd}" in + btm) + opts="-b -C -t -m -e -r -d -S -u -g -R -T -n -W -c -f -k -l -a -h -V --autohide_time --basic --config_location --default_time_value --default_widget_count --default_widget_type --disable_click --dot_marker --expanded --hide_table_gap --hide_time --rate --retention --show_table_scroll_position --time_delta --case_sensitive --current_usage --disable_advanced_kill --group_processes --process_memory_as_value --process_command --regex --tree --unnormalized_cpu --whole_word --celsius --fahrenheit --kelvin --cpu_left_legend --default_cpu_entry --hide_avg_cpu --memory_legend --enable_cache_memory --network_legend --network_use_bytes --network_use_binary_prefix --network_use_log --use_old_network_legend --battery --enable_gpu --theme --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --config_location) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --default_time_value) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --default_widget_count) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --default_widget_type) + COMPREPLY=($(compgen -W "cpu mem net network proc process processes temp temperature disk batt battery" -- "${cur}")) + return 0 + ;; + --rate) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -r) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --retention) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --time_delta) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -d) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --default_cpu_entry) + COMPREPLY=($(compgen -W "all avg" -- "${cur}")) + return 0 + ;; + --memory_legend) + COMPREPLY=($(compgen -W "none top-left top top-right left right bottom-left bottom bottom-right" -- "${cur}")) + return 0 + ;; + --network_legend) + COMPREPLY=($(compgen -W "none top-left top top-right left right bottom-left bottom bottom-right" -- "${cur}")) + return 0 + ;; + --theme) + COMPREPLY=($(compgen -W "default default-light gruvbox gruvbox-light nord nord-light" -- "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then + complete -F _btm -o nosort -o bashdefault -o default btm +else + complete -F _btm -o bashdefault -o default btm +fi diff --git a/profile/_assets/completions/delta_bash b/profile/_assets/completions/delta_bash new file mode 100644 index 0000000..124f73c --- /dev/null +++ b/profile/_assets/completions/delta_bash @@ -0,0 +1,383 @@ +_delta() { + local i cur prev opts cmd + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${cmd},${i}" in + ",$1") + cmd="delta" + ;; + *) + ;; + esac + done + + case "${cmd}" in + delta) + opts="-n -s -w -h -V --blame-code-style --blame-format --blame-palette --blame-separator-format --blame-separator-style --blame-timestamp-format --blame-timestamp-output-format --color-only --config --commit-decoration-style --commit-regex --commit-style --dark --default-language --diff-highlight --diff-so-fancy --diff-stat-align-width --features --file-added-label --file-copied-label --file-decoration-style --file-modified-label --file-removed-label --file-renamed-label --file-style --file-transformation --generate-completion --grep-context-line-style --grep-file-style --grep-header-decoration-style --grep-header-file-style --grep-line-number-style --grep-output-type --grep-match-line-style --grep-match-word-style --grep-separator-symbol --hunk-header-decoration-style --hunk-header-file-style --hunk-header-line-number-style --hunk-header-style --hunk-label --hyperlinks --hyperlinks-commit-link-format --hyperlinks-file-link-format --inline-hint-style --inspect-raw-lines --keep-plus-minus-markers --light --line-buffer-size --line-fill-method --line-numbers --line-numbers-left-format --line-numbers-left-style --line-numbers-minus-style --line-numbers-plus-style --line-numbers-right-format --line-numbers-right-style --line-numbers-zero-style --list-languages --list-syntax-themes --map-styles --max-line-distance --max-line-length --merge-conflict-begin-symbol --merge-conflict-end-symbol --merge-conflict-ours-diff-header-decoration-style --merge-conflict-ours-diff-header-style --merge-conflict-theirs-diff-header-decoration-style --merge-conflict-theirs-diff-header-style --minus-empty-line-marker-style --minus-emph-style --minus-non-emph-style --minus-style --navigate --navigate-regex --no-gitconfig --pager --paging --parse-ansi --plus-emph-style --plus-empty-line-marker-style --plus-non-emph-style --plus-style --raw --relative-paths --right-arrow --show-colors --show-config --show-syntax-themes --show-themes --side-by-side --syntax-theme --tabs --true-color --whitespace-error-style --width --word-diff-regex --wrap-left-symbol --wrap-max-lines --wrap-right-percent --wrap-right-prefix-symbol --wrap-right-symbol --zero-style --24-bit-color --help --version [MINUS_FILE] [PLUS_FILE]" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --blame-code-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --blame-format) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --blame-palette) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --blame-separator-format) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --blame-separator-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --blame-timestamp-format) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --blame-timestamp-output-format) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --commit-decoration-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --commit-regex) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --commit-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --default-language) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --diff-stat-align-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --features) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --file-added-label) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --file-copied-label) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --file-decoration-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --file-modified-label) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --file-removed-label) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --file-renamed-label) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --file-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --file-transformation) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --generate-completion) + COMPREPLY=($(compgen -W "bash elvish fish powershell zsh" -- "${cur}")) + return 0 + ;; + --grep-context-line-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --grep-file-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --grep-header-decoration-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --grep-header-file-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --grep-line-number-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --grep-output-type) + COMPREPLY=($(compgen -W "ripgrep classic" -- "${cur}")) + return 0 + ;; + --grep-match-line-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --grep-match-word-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --grep-separator-symbol) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --hunk-header-decoration-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --hunk-header-file-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --hunk-header-line-number-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --hunk-header-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --hunk-label) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --hyperlinks-commit-link-format) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --hyperlinks-file-link-format) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --inline-hint-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --inspect-raw-lines) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --line-buffer-size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --line-fill-method) + COMPREPLY=($(compgen -W "ansi spaces" -- "${cur}")) + return 0 + ;; + --line-numbers-left-format) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --line-numbers-left-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --line-numbers-minus-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --line-numbers-plus-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --line-numbers-right-format) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --line-numbers-right-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --line-numbers-zero-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --map-styles) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-line-distance) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-line-length) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --merge-conflict-begin-symbol) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --merge-conflict-end-symbol) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --merge-conflict-ours-diff-header-decoration-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --merge-conflict-ours-diff-header-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --merge-conflict-theirs-diff-header-decoration-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --merge-conflict-theirs-diff-header-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --minus-empty-line-marker-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --minus-emph-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --minus-non-emph-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --minus-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --navigate-regex) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --pager) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --paging) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --plus-emph-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --plus-empty-line-marker-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --plus-non-emph-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --plus-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --right-arrow) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --syntax-theme) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --tabs) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --true-color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --whitespace-error-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --word-diff-regex) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --wrap-left-symbol) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --wrap-max-lines) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --wrap-right-percent) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --wrap-right-prefix-symbol) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --wrap-right-symbol) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --zero-style) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --24-bit-color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +# nosort isn't supported for bash less than < 4.4 +if [[ ${BASH_VERSINFO[0]} -lt 4 || ( ${BASH_VERSINFO[0]} -eq 4 && ${BASH_VERSINFO[1]} -lt 4 ) ]]; then + complete -F _delta -o bashdefault -o default delta +else + complete -F _delta -o bashdefault -o default -o nosort delta +fi diff --git a/profile/_assets/completions/dog_bash b/profile/_assets/completions/dog_bash new file mode 100644 index 0000000..dd46278 --- /dev/null +++ b/profile/_assets/completions/dog_bash @@ -0,0 +1,48 @@ +_dog() +{ + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + + case "$prev" in + -'?'|--help|-v|--version) + return + ;; + + -t|--type) + COMPREPLY=( $( compgen -W 'A AAAA CAA CNAME HINFO MX NS PTR SOA SRV TXT' -- "$cur" ) ) + return + ;; + + --edns) + COMPREPLY=( $( compgen -W 'disable hide show' -- "$cur" ) ) + return + ;; + + -Z) + COMPREPLY=( $( compgen -W 'aa ad bufsize= cd' -- "$cur" ) ) + return + ;; + + --class) + COMPREPLY=( $( compgen -W 'IN CH HS' -- "$cur" ) ) + return + ;; + + --color|--colour) + COMPREPLY=( $( compgen -W 'always automatic never' -- $cur ) ) + return + ;; + esac + + case "$cur" in + -*) + COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + return + ;; + + *) + COMPREPLY=( $( compgen -W 'A AAAA CAA CNAME HINFO MX NS PTR SOA SRV TXT' -- "$cur" ) ) + ;; + esac +} && +complete -o bashdefault -F _dog dog diff --git a/profile/_assets/completions/dust_bash b/profile/_assets/completions/dust_bash new file mode 100644 index 0000000..a0babd2 --- /dev/null +++ b/profile/_assets/completions/dust_bash @@ -0,0 +1,188 @@ +_dust() { + local i cur prev opts cmd + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${cmd},${i}" in + ",$1") + cmd="dust" + ;; + *) + ;; + esac + done + + case "${cmd}" in + dust) + opts="-d -T -n -p -X -I -L -x -s -r -c -C -b -B -z -R -f -i -v -e -t -w -P -D -F -o -S -j -M -A -y -m -h -V --depth --threads --number-of-lines --full-paths --ignore-directory --ignore-all-in-file --dereference-links --limit-filesystem --apparent-size --reverse --no-colors --force-colors --no-percent-bars --bars-on-right --min-size --screen-reader --skip-total --filecount --ignore_hidden --invert-filter --filter --file_types --terminal_width --no-progress --print-errors --only-dir --only-file --output-format --stack-size --output-json --mtime --atime --ctime --files0-from --filetime --help --version [PATH]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --depth) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -d) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --threads) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -T) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --number-of-lines) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -n) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --ignore-directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -X) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --ignore-all-in-file) + local oldifs + if [[ -v IFS ]]; then + oldifs="$IFS" + fi + IFS=$'\n' + COMPREPLY=($(compgen -f "${cur}")) + if [[ -v oldifs ]]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi + return 0 + ;; + -I) + local oldifs + if [[ -v IFS ]]; then + oldifs="$IFS" + fi + IFS=$'\n' + COMPREPLY=($(compgen -f "${cur}")) + if [[ -v oldifs ]]; then + IFS="$oldifs" + fi + if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then + compopt -o filenames + fi + return 0 + ;; + --min-size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -z) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --invert-filter) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -v) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --filter) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -e) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --terminal_width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --output-format) + COMPREPLY=($(compgen -W "si b k m g t kb mb gb tb" -- "${cur}")) + return 0 + ;; + -o) + COMPREPLY=($(compgen -W "si b k m g t kb mb gb tb" -- "${cur}")) + return 0 + ;; + --stack-size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --mtime) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -M) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --atime) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -A) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --ctime) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -y) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --files0-from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --filetime) + COMPREPLY=($(compgen -W "a c m" -- "${cur}")) + return 0 + ;; + -m) + COMPREPLY=($(compgen -W "a c m" -- "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then + complete -F _dust -o nosort -o bashdefault -o default dust +else + complete -F _dust -o bashdefault -o default dust +fi diff --git a/profile/_assets/completions/eza_bash b/profile/_assets/completions/eza_bash new file mode 100644 index 0000000..dbecd8a --- /dev/null +++ b/profile/_assets/completions/eza_bash @@ -0,0 +1,76 @@ +# shellcheck shell=bash +_eza() { + cur=${COMP_WORDS[COMP_CWORD]} + prev=${COMP_WORDS[COMP_CWORD-1]} + + case "$prev" in + --help|-v|--version|--smart-group) + return + ;; + + --colour) + mapfile -t COMPREPLY < <(compgen -W 'always automatic auto never' -- "$cur") + return + ;; + + --icons) + mapfile -t COMPREPLY < <(compgen -W 'always automatic auto never' -- "$cur") + return + ;; + + -L|--level) + mapfile -t COMPREPLY < <(compgen -W '{0..9}' -- "$cur") + return + ;; + + -s|--sort) + mapfile -t COMPREPLY < <(compgen -W 'name filename Name Filename size filesize extension Extension date time modified changed accessed created type inode oldest newest age none --' -- "$cur") + return + ;; + + -t|--time) + mapfile -t COMPREPLY < <(compgen -W 'modified changed accessed created --' -- "$cur") + return + ;; + + --time-style) + mapfile -t COMPREPLY < <(compgen -W 'default iso long-iso full-iso relative +FORMAT --' -- "$cur") + return + ;; + + --color-scale) + mapfile -t COMPREPLY < <(compgen -W 'all age size --' -- "$cur") + return + ;; + + --color-scale-mode) + mapfile -t COMPREPLY < <(compgen -W 'fixed gradient --' -- "$cur") + return + ;; + + --absolute) + mapfile -t COMPREPLY < <(compgen -W 'on follow off --' -- "$cur") + return + ;; + esac + + case "$cur" in + # _parse_help doesn’t pick up short options when they are on the same line than long options + --*) + # colo[u]r isn’t parsed correctly so we filter these options out and add them by hand + parse_help=$(eza --help | grep -oE ' (--[[:alnum:]@-]+)' | tr -d ' ' | grep -v '\--colo') + completions=$(echo '--color --colour --color-scale --colour-scale --color-scale-mode --colour-scale-mode' "$parse_help") + mapfile -t COMPREPLY < <(compgen -W "$completions" -- "$cur") + ;; + + -*) + completions=$(eza --help | grep -oE ' (-[[:alnum:]@])' | tr -d ' ') + mapfile -t COMPREPLY < <(compgen -W "$completions" -- "$cur") + ;; + + *) + _filedir + ;; + esac +} && +complete -o filenames -o bashdefault -F _eza eza diff --git a/profile/_assets/fzf/init_fzf_bash.sh b/profile/_assets/completions/fzf_bash similarity index 100% rename from profile/_assets/fzf/init_fzf_bash.sh rename to profile/_assets/completions/fzf_bash diff --git a/profile/_assets/completions/hyperfine_bash b/profile/_assets/completions/hyperfine_bash new file mode 100644 index 0000000..3249260 --- /dev/null +++ b/profile/_assets/completions/hyperfine_bash @@ -0,0 +1,182 @@ +_hyperfine() { + local i cur prev opts cmd + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${cmd},${i}" in + ",$1") + cmd="hyperfine" + ;; + *) + ;; + esac + done + + case "${cmd}" in + hyperfine) + opts="-w -m -M -r -s -p -c -P -D -L -S -N -i -u -n -h -V --warmup --min-runs --max-runs --runs --setup --prepare --cleanup --parameter-scan --parameter-step-size --parameter-list --shell --ignore-failure --style --sort --time-unit --export-asciidoc --export-csv --export-json --export-markdown --export-orgmode --show-output --output --input --command-name --min-benchmarking-time --debug-mode --help --version <command>..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --warmup) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --min-runs) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -m) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-runs) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -M) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --runs) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -r) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --setup) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --prepare) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cleanup) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --parameter-scan) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --parameter-step-size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -D) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --parameter-list) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -L) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --shell) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --style) + COMPREPLY=($(compgen -W "auto basic full nocolor color none" -- "${cur}")) + return 0 + ;; + --sort) + COMPREPLY=($(compgen -W "auto command mean-time" -- "${cur}")) + return 0 + ;; + --time-unit) + COMPREPLY=($(compgen -W "microsecond millisecond second" -- "${cur}")) + return 0 + ;; + -u) + COMPREPLY=($(compgen -W "microsecond millisecond second" -- "${cur}")) + return 0 + ;; + --export-asciidoc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --export-csv) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --export-json) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --export-markdown) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --export-orgmode) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --output) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --input) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --command-name) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -n) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --min-benchmarking-time) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +complete -F _hyperfine -o nosort -o bashdefault -o default hyperfine diff --git a/profile/_assets/completions/lsd_bash b/profile/_assets/completions/lsd_bash new file mode 100644 index 0000000..7ba2aeb --- /dev/null +++ b/profile/_assets/completions/lsd_bash @@ -0,0 +1,106 @@ +_lsd() { + local i cur prev opts cmd + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${cmd},${i}" in + ",$1") + cmd="lsd" + ;; + *) + ;; + esac + done + + case "${cmd}" in + lsd) + opts="-a -A -F -l -1 -R -h -d -t -S -X -G -v -U -r -I -i -g -L -Z -N -V --all --almost-all --color --icon --icon-theme --classify --long --ignore-config --config-file --oneline --recursive --human-readable --tree --depth --directory-only --permission --size --total-size --date --timesort --sizesort --extensionsort --gitsort --versionsort --sort --no-sort --reverse --group-dirs --group-directories-first --blocks --classic --no-symlink --ignore-glob --inode --git --dereference --context --hyperlink --header --truncate-owner-after --truncate-owner-marker --system-protected --literal --help --version [FILE]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --color) + COMPREPLY=($(compgen -W "always auto never" -- "${cur}")) + return 0 + ;; + --icon) + COMPREPLY=($(compgen -W "always auto never" -- "${cur}")) + return 0 + ;; + --icon-theme) + COMPREPLY=($(compgen -W "fancy unicode" -- "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --depth) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --permission) + COMPREPLY=($(compgen -W "rwx octal attributes disable" -- "${cur}")) + return 0 + ;; + --size) + COMPREPLY=($(compgen -W "default short bytes" -- "${cur}")) + return 0 + ;; + --date) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --sort) + COMPREPLY=($(compgen -W "size time version extension git none" -- "${cur}")) + return 0 + ;; + --group-dirs) + COMPREPLY=($(compgen -W "none first last" -- "${cur}")) + return 0 + ;; + --blocks) + COMPREPLY=($(compgen -W "permission user group context size date name inode links git" -- "${cur}")) + return 0 + ;; + --ignore-glob) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -I) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --hyperlink) + COMPREPLY=($(compgen -W "always auto never" -- "${cur}")) + return 0 + ;; + --truncate-owner-after) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --truncate-owner-marker) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then + complete -F _lsd -o nosort -o bashdefault -o default lsd +else + complete -F _lsd -o bashdefault -o default lsd +fi diff --git a/profile/_assets/completions/pdu_bash b/profile/_assets/completions/pdu_bash new file mode 100644 index 0000000..a1858ed --- /dev/null +++ b/profile/_assets/completions/pdu_bash @@ -0,0 +1,66 @@ +_pdu() { + local i cur prev opts cmd + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${cmd},${i}" in + ",$1") + cmd="pdu" + ;; + *) + ;; + esac + done + + case "${cmd}" in + pdu) + opts="-h -V --json-input --json-output --bytes-format --top-down --align-right --quantity --max-depth --total-width --column-width --min-ratio --no-sort --silent-errors --progress --help --version [FILES]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --bytes-format) + COMPREPLY=($(compgen -W "plain metric binary" -- "${cur}")) + return 0 + ;; + --quantity) + COMPREPLY=($(compgen -W "apparent-size block-size block-count" -- "${cur}")) + return 0 + ;; + --max-depth) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --total-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --column-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --min-ratio) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then + complete -F _pdu -o nosort -o bashdefault -o default pdu +else + complete -F _pdu -o bashdefault -o default pdu +fi diff --git a/profile/_assets/completions/sd_bash b/profile/_assets/completions/sd_bash new file mode 100644 index 0000000..b3e8b71 --- /dev/null +++ b/profile/_assets/completions/sd_bash @@ -0,0 +1,54 @@ +_sd() { + local i cur prev opts cmd + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${cmd},${i}" in + ",$1") + cmd="sd" + ;; + *) + ;; + esac + done + + case "${cmd}" in + sd) + opts="-p -F -n -f -h -V --preview --fixed-strings --max-replacements --flags --help --version <FIND> <REPLACE_WITH> [FILES]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --max-replacements) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -n) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --flags) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +complete -F _sd -o nosort -o bashdefault -o default sd diff --git a/profile/_assets/completions/tldr_bash b/profile/_assets/completions/tldr_bash new file mode 100644 index 0000000..507e956 --- /dev/null +++ b/profile/_assets/completions/tldr_bash @@ -0,0 +1,34 @@ +# tealdeer bash completion + +_tealdeer() +{ + local cur prev words cword + _init_completion || return + + case $prev in + -h|--help|-v|--version|-l|--list|-u|--update|--no-auto-update|-c|--clear-cache|--pager|-r|--raw|--show-paths|--seed-config|-q|--quiet) + return + ;; + -f|--render) + _filedir + return + ;; + -p|--platform) + COMPREPLY=( $(compgen -W 'linux macos sunos windows android' -- "${cur}") ) + return + ;; + --color) + COMPREPLY=( $(compgen -W 'always auto never' -- "${cur}") ) + return + ;; + esac + + if [[ $cur == -* ]]; then + COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + return + fi + + COMPREPLY=( $(compgen -W '$( tldr -l | tr -d , )' -- "${cur}") ) +} + +complete -F _tealdeer tldr diff --git a/profile/_assets/completions/uv_bash b/profile/_assets/completions/uv_bash new file mode 100644 index 0000000..119eb68 --- /dev/null +++ b/profile/_assets/completions/uv_bash @@ -0,0 +1,3994 @@ +_uv() { + local i cur prev opts cmd + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${cmd},${i}" in + ",$1") + cmd="uv" + ;; + uv,add) + cmd="uv__add" + ;; + uv,build) + cmd="uv__build" + ;; + uv,cache) + cmd="uv__cache" + ;; + uv,clean) + cmd="uv__clean" + ;; + uv,export) + cmd="uv__export" + ;; + uv,generate-shell-completion) + cmd="uv__generate__shell__completion" + ;; + uv,help) + cmd="uv__help" + ;; + uv,init) + cmd="uv__init" + ;; + uv,lock) + cmd="uv__lock" + ;; + uv,pip) + cmd="uv__pip" + ;; + uv,python) + cmd="uv__python" + ;; + uv,remove) + cmd="uv__remove" + ;; + uv,run) + cmd="uv__run" + ;; + uv,self) + cmd="uv__self" + ;; + uv,sync) + cmd="uv__sync" + ;; + uv,tool) + cmd="uv__tool" + ;; + uv,tree) + cmd="uv__tree" + ;; + uv,venv) + cmd="uv__venv" + ;; + uv,version) + cmd="uv__version" + ;; + uv__cache,clean) + cmd="uv__cache__clean" + ;; + uv__cache,dir) + cmd="uv__cache__dir" + ;; + uv__cache,prune) + cmd="uv__cache__prune" + ;; + uv__pip,check) + cmd="uv__pip__check" + ;; + uv__pip,compile) + cmd="uv__pip__compile" + ;; + uv__pip,freeze) + cmd="uv__pip__freeze" + ;; + uv__pip,install) + cmd="uv__pip__install" + ;; + uv__pip,list) + cmd="uv__pip__list" + ;; + uv__pip,show) + cmd="uv__pip__show" + ;; + uv__pip,sync) + cmd="uv__pip__sync" + ;; + uv__pip,tree) + cmd="uv__pip__tree" + ;; + uv__pip,uninstall) + cmd="uv__pip__uninstall" + ;; + uv__python,dir) + cmd="uv__python__dir" + ;; + uv__python,find) + cmd="uv__python__find" + ;; + uv__python,install) + cmd="uv__python__install" + ;; + uv__python,list) + cmd="uv__python__list" + ;; + uv__python,pin) + cmd="uv__python__pin" + ;; + uv__python,uninstall) + cmd="uv__python__uninstall" + ;; + uv__self,update) + cmd="uv__self__update" + ;; + uv__tool,dir) + cmd="uv__tool__dir" + ;; + uv__tool,install) + cmd="uv__tool__install" + ;; + uv__tool,list) + cmd="uv__tool__list" + ;; + uv__tool,run) + cmd="uv__tool__run" + ;; + uv__tool,uninstall) + cmd="uv__tool__uninstall" + ;; + uv__tool,update-shell) + cmd="uv__tool__update__shell" + ;; + uv__tool,upgrade) + cmd="uv__tool__upgrade" + ;; + uv__tool,uvx) + cmd="uv__tool__uvx" + ;; + *) + ;; + esac + done + + case "${cmd}" in + uv) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version run init add remove sync lock export tree tool python pip venv build cache self clean version generate-shell-completion help" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__add) + opts="-r -i -f -U -P -C -p -n -q -v -h -V --requirements --dev --optional --editable --no-editable --raw-sources --rev --tag --branch --extra --no-sync --locked --frozen --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --reinstall --no-reinstall --reinstall-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --compile-bytecode --no-compile-bytecode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --refresh --no-refresh --refresh-package --package --script --python --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [PACKAGES]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --requirements) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -r) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --optional) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --rev) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --tag) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --branch) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --reinstall-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --script) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__build) + opts="-o -b -p -i -f -U -P -C -n -q -v -h -V --package --out-dir --sdist --wheel --build-constraint --require-hashes --no-require-hashes --verify-hashes --no-verify-hashes --python --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --refresh --no-refresh --refresh-package --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [SRC]" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --out-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -o) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --build-constraint) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__cache) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version clean prune dir" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__cache__clean) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [PACKAGE]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__cache__dir) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__cache__prune) + opts="-n -q -v -h -V --ci --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__clean) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [PACKAGE]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__export) + opts="-o -i -f -U -P -C -p -n -q -v -h -V --format --package --extra --all-extras --no-all-extras --dev --no-dev --only-dev --no-editable --hashes --no-hashes --output-file --no-emit-project --no-emit-workspace --no-emit-package --locked --frozen --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --refresh --no-refresh --refresh-package --python --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --format) + COMPREPLY=($(compgen -W "requirements-txt" -- "${cur}")) + return 0 + ;; + --package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --output-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -o) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-emit-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__generate__shell__completion) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --no-python-downloads --quiet --verbose --color --native-tls --offline --no-progress --config-file --no-config --help --version --allow-python-downloads --python-fetch --no-color --no-native-tls --no-offline --preview --no-preview --isolated --show-settings --directory bash elvish fish nushell powershell zsh" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__help) + opts="-n -q -v -h -V --no-pager --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [COMMAND]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__init) + opts="-p -n -q -v -h -V --name --virtual --package --no-package --app --lib --no-readme --no-pin-python --no-workspace --python --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [PATH]" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --name) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__lock) + opts="-i -f -U -P -C -p -n -q -v -h -V --locked --frozen --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --refresh --no-refresh --refresh-package --python --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__pip) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version compile sync install uninstall freeze list show tree check" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__pip__check) + opts="-p -n -q -v -h -V --python --system --no-system --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__pip__compile) + opts="-c -b -i -f -U -P -C -o -p -n -q -v -h -V --constraint --override --build-constraint --extra --all-extras --no-all-extras --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --no-sources --refresh --no-refresh --refresh-package --no-deps --deps --output-file --no-strip-extras --strip-extras --no-strip-markers --strip-markers --no-annotate --annotate --no-header --header --annotation-style --custom-compile-command --python --system --no-system --generate-hashes --no-generate-hashes --no-build --build --no-binary --only-binary --python-version --python-platform --universal --no-universal --no-emit-package --emit-index-url --no-emit-index-url --emit-find-links --no-emit-find-links --emit-build-options --no-emit-build-options --emit-marker-expression --no-emit-marker-expression --emit-index-annotation --no-emit-index-annotation --allow-unsafe --no-allow-unsafe --reuse-hashes --no-reuse-hashes --resolver --max-rounds --cert --client-cert --emit-trusted-host --no-emit-trusted-host --config --no-config --emit-options --no-emit-options --pip-args --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --help --version <SRC_FILE>..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --constraint) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --override) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --build-constraint) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --output-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -o) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --annotation-style) + COMPREPLY=($(compgen -W "line split" -- "${cur}")) + return 0 + ;; + --custom-compile-command) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --only-binary) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-version) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-platform) + COMPREPLY=($(compgen -W "windows linux macos x86_64-pc-windows-msvc i686-pc-windows-msvc x86_64-unknown-linux-gnu aarch64-apple-darwin x86_64-apple-darwin aarch64-unknown-linux-gnu aarch64-unknown-linux-musl x86_64-unknown-linux-musl x86_64-manylinux_2_17 x86_64-manylinux_2_28 x86_64-manylinux_2_31 aarch64-manylinux_2_17 aarch64-manylinux_2_28 aarch64-manylinux_2_31" -- "${cur}")) + return 0 + ;; + --no-emit-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolver) + COMPREPLY=($(compgen -W "backtracking legacy" -- "${cur}")) + return 0 + ;; + --max-rounds) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cert) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --client-cert) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --pip-args) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__pip__freeze) + opts="-p -n -q -v -h -V --exclude-editable --strict --no-strict --python --system --no-system --disable-pip-version-check --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__pip__install) + opts="-r -e -c -b -i -f -U -P -C -p -n -q -v -h -V --requirement --editable --constraint --override --build-constraint --extra --all-extras --no-all-extras --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --reinstall --no-reinstall --reinstall-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --compile-bytecode --no-compile-bytecode --no-sources --refresh --no-refresh --refresh-package --no-deps --deps --require-hashes --no-require-hashes --verify-hashes --no-verify-hashes --python --system --no-system --break-system-packages --no-break-system-packages --target --prefix --no-build --build --no-binary --only-binary --python-version --python-platform --strict --no-strict --dry-run --disable-pip-version-check --user --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [PACKAGE]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --requirement) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -r) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --editable) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -e) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --constraint) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --override) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --build-constraint) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --reinstall-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --target) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --prefix) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --only-binary) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-version) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-platform) + COMPREPLY=($(compgen -W "windows linux macos x86_64-pc-windows-msvc i686-pc-windows-msvc x86_64-unknown-linux-gnu aarch64-apple-darwin x86_64-apple-darwin aarch64-unknown-linux-gnu aarch64-unknown-linux-musl x86_64-unknown-linux-musl x86_64-manylinux_2_17 x86_64-manylinux_2_28 x86_64-manylinux_2_31 aarch64-manylinux_2_17 aarch64-manylinux_2_28 aarch64-manylinux_2_31" -- "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__pip__list) + opts="-e -p -n -q -v -h -V --editable --exclude-editable --exclude --format --strict --no-strict --python --system --no-system --disable-pip-version-check --outdated --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --exclude) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --format) + COMPREPLY=($(compgen -W "columns freeze json" -- "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__pip__show) + opts="-p -n -q -v -h -V --strict --no-strict --python --system --no-system --disable-pip-version-check --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [PACKAGE]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__pip__sync) + opts="-c -b -i -f -C -p -a -n -q -v -h -V --constraint --build-constraint --index-url --extra-index-url --find-links --no-index --reinstall --no-reinstall --reinstall-package --index-strategy --keyring-provider --allow-insecure-host --config-setting --no-build-isolation --build-isolation --exclude-newer --link-mode --compile-bytecode --no-compile-bytecode --no-sources --refresh --no-refresh --refresh-package --require-hashes --no-require-hashes --verify-hashes --no-verify-hashes --python --system --no-system --break-system-packages --no-break-system-packages --target --prefix --no-build --build --no-binary --only-binary --allow-empty-requirements --no-allow-empty-requirements --python-version --python-platform --strict --no-strict --dry-run --ask --python-executable --user --cert --client-cert --config --no-config --pip-args --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --help --version <SRC_FILE>..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --constraint) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --build-constraint) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --reinstall-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --target) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --prefix) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --only-binary) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-version) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-platform) + COMPREPLY=($(compgen -W "windows linux macos x86_64-pc-windows-msvc i686-pc-windows-msvc x86_64-unknown-linux-gnu aarch64-apple-darwin x86_64-apple-darwin aarch64-unknown-linux-gnu aarch64-unknown-linux-musl x86_64-unknown-linux-musl x86_64-manylinux_2_17 x86_64-manylinux_2_28 x86_64-manylinux_2_31 aarch64-manylinux_2_17 aarch64-manylinux_2_28 aarch64-manylinux_2_31" -- "${cur}")) + return 0 + ;; + --python-executable) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cert) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --client-cert) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --pip-args) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__pip__tree) + opts="-d -p -n -q -v -h -V --show-version-specifiers --depth --prune --package --no-dedupe --invert --strict --no-strict --python --system --no-system --disable-pip-version-check --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --depth) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -d) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --prune) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__pip__uninstall) + opts="-r -p -n -q -v -h -V --requirement --python --keyring-provider --allow-insecure-host --system --no-system --break-system-packages --no-break-system-packages --target --prefix --disable-pip-version-check --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [PACKAGE]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --requirement) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -r) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --target) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --prefix) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__python) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version list install find pin dir uninstall" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__python__dir) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__python__find) + opts="-n -q -v -h -V --no-project --system --no-system --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [REQUEST]" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__python__install) + opts="-r -n -q -v -h -V --reinstall --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [TARGETS]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__python__list) + opts="-n -q -v -h -V --all-versions --all-platforms --only-installed --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__python__pin) + opts="-n -q -v -h -V --resolved --no-resolved --no-project --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [REQUEST]" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__python__uninstall) + opts="-n -q -v -h -V --all --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version <TARGETS>..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__remove) + opts="-i -f -U -P -C -p -n -q -v -h -V --dev --optional --no-sync --locked --frozen --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --reinstall --no-reinstall --reinstall-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --compile-bytecode --no-compile-bytecode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --refresh --no-refresh --refresh-package --package --script --python --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version <PACKAGES>..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --optional) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --reinstall-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --script) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__run) + opts="-i -f -U -P -C -p -n -q -v -h -V --extra --all-extras --no-all-extras --dev --no-dev --only-dev --no-editable --with --with-editable --with-requirements --isolated --no-sync --locked --frozen --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --reinstall --no-reinstall --reinstall-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --compile-bytecode --no-compile-bytecode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --refresh --no-refresh --refresh-package --package --no-project --python --show-resolution --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --extra) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with-editable) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with-requirements) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --reinstall-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__self) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version update" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__self__update) + opts="-n -q -v -h -V --token --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [TARGET_VERSION]" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --token) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__sync) + opts="-i -f -U -P -C -p -n -q -v -h -V --extra --all-extras --no-all-extras --dev --no-dev --only-dev --no-editable --inexact --exact --no-install-project --no-install-workspace --no-install-package --locked --frozen --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --reinstall --no-reinstall --reinstall-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --compile-bytecode --no-compile-bytecode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --refresh --no-refresh --refresh-package --package --python --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --extra) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-install-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --reinstall-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__tool) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version run uvx install upgrade list uninstall update-shell dir" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__tool__dir) + opts="-n -q -v -h -V --bin --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__tool__install) + opts="-e -i -f -U -P -C -p -n -q -v -h -V --editable --from --with --with-requirements --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --reinstall --no-reinstall --reinstall-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --compile-bytecode --no-compile-bytecode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --refresh --no-refresh --refresh-package --force --python --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version <PACKAGE>" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with-requirements) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --reinstall-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__tool__list) + opts="-n -q -v -h -V --show-paths --show-version-specifiers --python-preference --no-python-downloads --no-cache --cache-dir --allow-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__tool__run) + opts="-i -f -U -P -C -p -n -q -v -h -V --from --with --with-editable --with-requirements --isolated --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --reinstall --no-reinstall --reinstall-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --compile-bytecode --no-compile-bytecode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --refresh --no-refresh --refresh-package --python --show-resolution --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with-editable) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with-requirements) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --reinstall-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__tool__uninstall) + opts="-n -q -v -h -V --all --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version <NAME>..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__tool__update__shell) + opts="-n -q -v -h -V --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__tool__upgrade) + opts="-i -f -U -P -C -n -q -v -h -V --all --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --reinstall --no-reinstall --reinstall-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --compile-bytecode --no-compile-bytecode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version <NAME>..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --reinstall-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__tool__uvx) + opts="-i -f -U -P -C -p -n -q -v -h -V --from --with --with-editable --with-requirements --isolated --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --reinstall --no-reinstall --reinstall-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --compile-bytecode --no-compile-bytecode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --refresh --no-refresh --refresh-package --python --show-resolution --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with-editable) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with-requirements) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --reinstall-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__tree) + opts="-d -i -f -U -P -C -p -n -q -v -h -V --universal --depth --prune --package --no-dedupe --invert --locked --frozen --no-build --build --no-build-package --no-binary --binary --no-binary-package --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --no-sources --python-version --python-platform --python --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --depth) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -d) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --prune) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --python-version) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-platform) + COMPREPLY=($(compgen -W "windows linux macos x86_64-pc-windows-msvc i686-pc-windows-msvc x86_64-unknown-linux-gnu aarch64-apple-darwin x86_64-apple-darwin aarch64-unknown-linux-gnu aarch64-unknown-linux-musl x86_64-unknown-linux-musl x86_64-manylinux_2_17 x86_64-manylinux_2_28 x86_64-manylinux_2_31 aarch64-manylinux_2_17 aarch64-manylinux_2_28 aarch64-manylinux_2_31" -- "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__venv) + opts="-p -i -f -n -q -v -h -V --python --system --no-system --no-project --seed --allow-existing --prompt --system-site-packages --relocatable --index-url --extra-index-url --find-links --no-index --index-strategy --keyring-provider --allow-insecure-host --exclude-newer --link-mode --clear --no-seed --no-pip --no-setuptools --no-wheel --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version [PATH]" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --prompt) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + uv__version) + opts="-n -q -v -h -V --output-format --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --isolated --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --output-format) + COMPREPLY=($(compgen -W "text json" -- "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then + complete -F _uv -o nosort -o bashdefault -o default uv +else + complete -F _uv -o bashdefault -o default uv +fi +_uvx() { + local i cur prev opts cmd + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${cmd},${i}" in + ",$1") + cmd="uvx" + ;; + *) + ;; + esac + done + + case "${cmd}" in + uvx) + opts="-i -f -U -P -C -p -n -q -v -h -V --from --with --with-editable --with-requirements --isolated --index-url --extra-index-url --find-links --no-index --upgrade --no-upgrade --upgrade-package --reinstall --no-reinstall --reinstall-package --index-strategy --keyring-provider --allow-insecure-host --resolution --prerelease --pre --config-setting --no-build-isolation --no-build-isolation-package --build-isolation --exclude-newer --link-mode --compile-bytecode --no-compile-bytecode --no-sources --no-build --build --no-build-package --no-binary --binary --no-binary-package --refresh --no-refresh --refresh-package --python --show-resolution --no-cache --cache-dir --python-preference --allow-python-downloads --no-python-downloads --python-fetch --quiet --verbose --no-color --color --native-tls --no-native-tls --offline --no-offline --preview --no-preview --show-settings --no-progress --directory --config-file --no-config --help --version" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with-editable) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --with-requirements) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --extra-index-url) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --find-links) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --upgrade-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --reinstall-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --index-strategy) + COMPREPLY=($(compgen -W "first-index unsafe-first-match unsafe-best-match" -- "${cur}")) + return 0 + ;; + --keyring-provider) + COMPREPLY=($(compgen -W "disabled subprocess" -- "${cur}")) + return 0 + ;; + --allow-insecure-host) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --resolution) + COMPREPLY=($(compgen -W "highest lowest lowest-direct" -- "${cur}")) + return 0 + ;; + --prerelease) + COMPREPLY=($(compgen -W "disallow allow if-necessary explicit if-necessary-or-explicit" -- "${cur}")) + return 0 + ;; + --config-setting) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -C) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-build-isolation-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --exclude-newer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --link-mode) + COMPREPLY=($(compgen -W "clone copy hardlink symlink" -- "${cur}")) + return 0 + ;; + --no-build-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --no-binary-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --refresh-package) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cache-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --python-preference) + COMPREPLY=($(compgen -W "only-managed managed system only-system" -- "${cur}")) + return 0 + ;; + --python-fetch) + COMPREPLY=($(compgen -W "automatic manual never" -- "${cur}")) + return 0 + ;; + --color) + COMPREPLY=($(compgen -W "auto always never" -- "${cur}")) + return 0 + ;; + --directory) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then + complete -F _uvx -o nosort -o bashdefault -o default uvx +else + complete -F _uvx -o bashdefault -o default uvx +fi diff --git a/profile/_assets/completions/xh_bash b/profile/_assets/completions/xh_bash new file mode 100644 index 0000000..ed02a49 --- /dev/null +++ b/profile/_assets/completions/xh_bash @@ -0,0 +1,166 @@ +_xh() { + local i cur prev opts cmd + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${cmd},${i}" in + ",$1") + cmd="xh" + ;; + *) + ;; + esac + done + + case "${cmd}" in + xh) + opts="-j -f -s -p -h -b -m -v -P -q -S -o -d -c -A -a -F -4 -6 -I -V --json --form --multipart --raw --pretty --format-options --style --response-charset --response-mime --print --headers --body --meta --verbose --all --history-print --quiet --stream --output --download --continue --session --session-read-only --auth-type --auth --bearer --ignore-netrc --offline --check-status --follow --max-redirects --timeout --proxy --verify --cert --cert-key --ssl --native-tls --default-scheme --https --http-version --resolve --interface --ipv4 --ipv6 --ignore-stdin --curl --curl-long --help --no-json --no-form --no-multipart --no-raw --no-pretty --no-format-options --no-style --no-response-charset --no-response-mime --no-print --no-headers --no-body --no-meta --no-verbose --no-all --no-history-print --no-quiet --no-stream --no-output --no-download --no-continue --no-session --no-session-read-only --no-auth-type --no-auth --no-bearer --no-ignore-netrc --no-offline --no-check-status --no-follow --no-max-redirects --no-timeout --no-proxy --no-verify --no-cert --no-cert-key --no-ssl --no-native-tls --no-default-scheme --no-https --no-http-version --no-resolve --no-interface --no-ipv4 --no-ipv6 --no-ignore-stdin --no-curl --no-curl-long --no-help --version <[METHOD] URL> [REQUEST_ITEM]..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --raw) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --pretty) + COMPREPLY=($(compgen -W "all colors format none" -- "${cur}")) + return 0 + ;; + --format-options) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --style) + COMPREPLY=($(compgen -W "auto solarized monokai fruity" -- "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -W "auto solarized monokai fruity" -- "${cur}")) + return 0 + ;; + --response-charset) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --response-mime) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --print) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --history-print) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -P) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --output) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -o) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --session) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --session-read-only) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --auth-type) + COMPREPLY=($(compgen -W "basic bearer digest" -- "${cur}")) + return 0 + ;; + -A) + COMPREPLY=($(compgen -W "basic bearer digest" -- "${cur}")) + return 0 + ;; + --auth) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -a) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --bearer) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-redirects) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --timeout) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --proxy) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --verify) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cert) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cert-key) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --ssl) + COMPREPLY=($(compgen -W "auto tls1 tls1.1 tls1.2 tls1.3" -- "${cur}")) + return 0 + ;; + --default-scheme) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --http-version) + COMPREPLY=($(compgen -W "1.0 1.1 2 2-prior-knowledge" -- "${cur}")) + return 0 + ;; + --resolve) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --interface) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then + complete -F _xh -o nosort -o bashdefault -o default xh +else + complete -F _xh -o bashdefault -o default xh +fi diff --git a/profile/_assets/completions/zellij_bash b/profile/_assets/completions/zellij_bash new file mode 100644 index 0000000..d0a39d8 --- /dev/null +++ b/profile/_assets/completions/zellij_bash @@ -0,0 +1,1883 @@ +_zellij() { + local i cur prev opts cmds + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${i}" in + "$1") + cmd="zellij" + ;; + action) + cmd+="__action" + ;; + attach) + cmd+="__attach" + ;; + clear) + cmd+="__clear" + ;; + close-pane) + cmd+="__close__pane" + ;; + close-tab) + cmd+="__close__tab" + ;; + convert-config) + cmd+="__convert__config" + ;; + convert-layout) + cmd+="__convert__layout" + ;; + convert-theme) + cmd+="__convert__theme" + ;; + delete-all-sessions) + cmd+="__delete__all__sessions" + ;; + delete-session) + cmd+="__delete__session" + ;; + dump-layout) + cmd+="__dump__layout" + ;; + dump-screen) + cmd+="__dump__screen" + ;; + edit) + cmd+="__edit" + ;; + edit-scrollback) + cmd+="__edit__scrollback" + ;; + focus-next-pane) + cmd+="__focus__next__pane" + ;; + focus-previous-pane) + cmd+="__focus__previous__pane" + ;; + go-to-next-tab) + cmd+="__go__to__next__tab" + ;; + go-to-previous-tab) + cmd+="__go__to__previous__tab" + ;; + go-to-tab) + cmd+="__go__to__tab" + ;; + go-to-tab-name) + cmd+="__go__to__tab__name" + ;; + half-page-scroll-down) + cmd+="__half__page__scroll__down" + ;; + half-page-scroll-up) + cmd+="__half__page__scroll__up" + ;; + help) + cmd+="__help" + ;; + kill-all-sessions) + cmd+="__kill__all__sessions" + ;; + kill-session) + cmd+="__kill__session" + ;; + launch-or-focus-plugin) + cmd+="__launch__or__focus__plugin" + ;; + launch-plugin) + cmd+="__launch__plugin" + ;; + list-aliases) + cmd+="__list__aliases" + ;; + list-clients) + cmd+="__list__clients" + ;; + list-sessions) + cmd+="__list__sessions" + ;; + move-focus) + cmd+="__move__focus" + ;; + move-focus-or-tab) + cmd+="__move__focus__or__tab" + ;; + move-pane) + cmd+="__move__pane" + ;; + move-pane-backwards) + cmd+="__move__pane__backwards" + ;; + move-tab) + cmd+="__move__tab" + ;; + new-pane) + cmd+="__new__pane" + ;; + new-tab) + cmd+="__new__tab" + ;; + next-swap-layout) + cmd+="__next__swap__layout" + ;; + options) + cmd+="__options" + ;; + page-scroll-down) + cmd+="__page__scroll__down" + ;; + page-scroll-up) + cmd+="__page__scroll__up" + ;; + pipe) + cmd+="__pipe" + ;; + plugin) + cmd+="__plugin" + ;; + previous-swap-layout) + cmd+="__previous__swap__layout" + ;; + query-tab-names) + cmd+="__query__tab__names" + ;; + rename-pane) + cmd+="__rename__pane" + ;; + rename-session) + cmd+="__rename__session" + ;; + rename-tab) + cmd+="__rename__tab" + ;; + resize) + cmd+="__resize" + ;; + run) + cmd+="__run" + ;; + scroll-down) + cmd+="__scroll__down" + ;; + scroll-to-bottom) + cmd+="__scroll__to__bottom" + ;; + scroll-to-top) + cmd+="__scroll__to__top" + ;; + scroll-up) + cmd+="__scroll__up" + ;; + setup) + cmd+="__setup" + ;; + start-or-reload-plugin) + cmd+="__start__or__reload__plugin" + ;; + switch-mode) + cmd+="__switch__mode" + ;; + toggle-active-sync-tab) + cmd+="__toggle__active__sync__tab" + ;; + toggle-floating-panes) + cmd+="__toggle__floating__panes" + ;; + toggle-fullscreen) + cmd+="__toggle__fullscreen" + ;; + toggle-pane-embed-or-floating) + cmd+="__toggle__pane__embed__or__floating" + ;; + toggle-pane-frames) + cmd+="__toggle__pane__frames" + ;; + undo-rename-pane) + cmd+="__undo__rename__pane" + ;; + undo-rename-tab) + cmd+="__undo__rename__tab" + ;; + write) + cmd+="__write" + ;; + write-chars) + cmd+="__write__chars" + ;; + *) + ;; + esac + done + + case "${cmd}" in + zellij) + opts="-h -V -s -l -c -d --help --version --max-panes --data-dir --server --session --layout --config --config-dir --debug options setup list-sessions list-aliases attach kill-session delete-session kill-all-sessions delete-all-sessions action run plugin edit convert-config convert-layout convert-theme pipe help" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --max-panes) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --data-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --server) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --session) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --layout) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -l) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --config-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__action) + opts="-h --help write write-chars resize focus-next-pane focus-previous-pane move-focus move-focus-or-tab move-pane move-pane-backwards clear dump-screen dump-layout edit-scrollback scroll-up scroll-down scroll-to-bottom scroll-to-top page-scroll-up page-scroll-down half-page-scroll-up half-page-scroll-down toggle-fullscreen toggle-pane-frames toggle-active-sync-tab new-pane edit switch-mode toggle-pane-embed-or-floating toggle-floating-panes close-pane rename-pane undo-rename-pane go-to-next-tab go-to-previous-tab close-tab go-to-tab go-to-tab-name rename-tab undo-rename-tab new-tab move-tab previous-swap-layout next-swap-layout query-tab-names start-or-reload-plugin launch-or-focus-plugin launch-plugin rename-session pipe list-clients help" + 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 + ;; + zellij__action__clear) + 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 + ;; + zellij__action__close__pane) + 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 + ;; + zellij__action__close__tab) + 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 + ;; + zellij__action__dump__layout) + 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 + ;; + zellij__action__dump__screen) + opts="-f -h --full --help <PATH>" + 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 + ;; + zellij__action__edit) + opts="-d -l -f -i -x -y -h --direction --line-number --floating --in-place --cwd --x --y --width --height --help <FILE>" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --direction) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -d) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --line-number) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -l) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cwd) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --x) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -x) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --y) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -y) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --height) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__action__edit__scrollback) + 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 + ;; + zellij__action__focus__next__pane) + 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 + ;; + zellij__action__focus__previous__pane) + 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 + ;; + zellij__action__go__to__next__tab) + 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 + ;; + zellij__action__go__to__previous__tab) + 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 + ;; + zellij__action__go__to__tab) + opts="-h --help <INDEX>" + 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 + ;; + zellij__action__go__to__tab__name) + opts="-c -h --create --help <NAME>" + 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 + ;; + zellij__action__half__page__scroll__down) + 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 + ;; + zellij__action__half__page__scroll__up) + 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 + ;; + zellij__action__help) + opts="<SUBCOMMAND>..." + 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 + ;; + zellij__action__launch__or__focus__plugin) + opts="-f -i -m -c -s -h --floating --in-place --move-to-focused-tab --configuration --skip-plugin-cache --help <URL>" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --configuration) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__action__launch__plugin) + opts="-f -i -c -s -h --floating --in-place --configuration --skip-plugin-cache --help <URL>" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --configuration) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__action__list__clients) + 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 + ;; + zellij__action__move__focus) + opts="-h --help <DIRECTION>" + 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 + ;; + zellij__action__move__focus__or__tab) + opts="-h --help <DIRECTION>" + 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 + ;; + zellij__action__move__pane) + opts="-h --help <DIRECTION>" + 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 + ;; + zellij__action__move__pane__backwards) + 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 + ;; + zellij__action__move__tab) + opts="-h --help <DIRECTION>" + 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 + ;; + zellij__action__new__pane) + opts="-d -p -f -i -n -c -s -x -y -h --direction --plugin --cwd --floating --in-place --name --close-on-exit --start-suspended --configuration --skip-plugin-cache --x --y --width --height --help <COMMAND>..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --direction) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -d) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --plugin) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cwd) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --name) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -n) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --configuration) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --x) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -x) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --y) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -y) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --height) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__action__new__tab) + opts="-l -n -c -h --layout --layout-dir --name --cwd --help" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --layout) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -l) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --layout-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --name) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -n) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cwd) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__action__next__swap__layout) + 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 + ;; + zellij__action__page__scroll__down) + 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 + ;; + zellij__action__page__scroll__up) + 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 + ;; + zellij__action__pipe) + opts="-n -a -p -c -l -s -f -i -w -t -h --name --args --plugin --plugin-configuration --force-launch-plugin --skip-plugin-cache --floating-plugin --in-place-plugin --plugin-cwd --plugin-title --help <PAYLOAD>" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --name) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -n) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --args) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -a) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --plugin) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --plugin-configuration) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --floating-plugin) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --in-place-plugin) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + -i) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --plugin-cwd) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --plugin-title) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__action__previous__swap__layout) + 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 + ;; + zellij__action__query__tab__names) + 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 + ;; + zellij__action__rename__pane) + opts="-h --help <NAME>" + 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 + ;; + zellij__action__rename__session) + opts="-h --help <NAME>" + 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 + ;; + zellij__action__rename__tab) + opts="-h --help <NAME>" + 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 + ;; + zellij__action__resize) + opts="-h --help <RESIZE> <DIRECTION>" + 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 + ;; + zellij__action__scroll__down) + 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 + ;; + zellij__action__scroll__to__bottom) + 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 + ;; + zellij__action__scroll__to__top) + 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 + ;; + zellij__action__scroll__up) + 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 + ;; + zellij__action__start__or__reload__plugin) + opts="-c -h --configuration --help <URL>" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --configuration) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__action__switch__mode) + opts="-h --help <INPUT_MODE>" + 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 + ;; + zellij__action__toggle__active__sync__tab) + 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 + ;; + zellij__action__toggle__floating__panes) + 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 + ;; + zellij__action__toggle__fullscreen) + 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 + ;; + zellij__action__toggle__pane__embed__or__floating) + 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 + ;; + zellij__action__toggle__pane__frames) + 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 + ;; + zellij__action__undo__rename__pane) + 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 + ;; + zellij__action__undo__rename__tab) + 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 + ;; + zellij__action__write) + opts="-h --help <BYTES>..." + 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 + ;; + zellij__action__write__chars) + opts="-h --help <CHARS>" + 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 + ;; + zellij__attach) + opts="-c -b -f -h --create --create-background --index --force-run-commands --help <SESSION_NAME> options help" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --index) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__attach__help) + opts="<SUBCOMMAND>..." + 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 + ;; + zellij__attach__options) + opts="-h --disable-mouse-mode --no-pane-frames --simplified-ui --theme --default-mode --default-shell --default-cwd --default-layout --layout-dir --theme-dir --mouse-mode --pane-frames --mirror-session --on-force-close --scroll-buffer-size --copy-command --copy-clipboard --copy-on-select --scrollback-editor --session-name --attach-to-session --auto-layout --session-serialization --serialize-pane-viewport --scrollback-lines-to-serialize --styled-underlines --serialization-interval --disable-session-metadata --help" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --simplified-ui) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --theme) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --default-mode) + COMPREPLY=($(compgen -W "normal locked resize pane tab scroll enter-search search rename-tab rename-pane session move prompt tmux" -- "${cur}")) + return 0 + ;; + --default-shell) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --default-cwd) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --default-layout) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --layout-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --theme-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --mouse-mode) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --pane-frames) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --mirror-session) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --on-force-close) + COMPREPLY=($(compgen -W "quit detach" -- "${cur}")) + return 0 + ;; + --scroll-buffer-size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --copy-command) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --copy-clipboard) + COMPREPLY=($(compgen -W "system primary" -- "${cur}")) + return 0 + ;; + --copy-on-select) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --scrollback-editor) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --session-name) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --attach-to-session) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --auto-layout) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --session-serialization) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --serialize-pane-viewport) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --scrollback-lines-to-serialize) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --styled-underlines) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --serialization-interval) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --disable-session-metadata) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__convert__config) + opts="-h --help <OLD_CONFIG_FILE>" + 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 + ;; + zellij__convert__layout) + opts="-h --help <OLD_LAYOUT_FILE>" + 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 + ;; + zellij__convert__theme) + opts="-h --help <OLD_THEME_FILE>" + 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 + ;; + zellij__delete__all__sessions) + opts="-y -f -h --yes --force --help" + 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 + ;; + zellij__delete__session) + opts="-f -h --force --help <TARGET_SESSION>" + 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 + ;; + zellij__edit) + opts="-l -d -i -f -x -y -h --line-number --direction --in-place --floating --cwd --x --y --width --height --help <FILE>" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --line-number) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -l) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --direction) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -d) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cwd) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --x) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -x) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --y) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -y) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --height) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__help) + opts="<SUBCOMMAND>..." + 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 + ;; + zellij__kill__all__sessions) + opts="-y -h --yes --help" + 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 + ;; + zellij__kill__session) + opts="-h --help <TARGET_SESSION>" + 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 + ;; + zellij__list__aliases) + opts="-h --help" + 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 + ;; + zellij__list__sessions) + opts="-n -s -r -h --no-formatting --short --reverse --help" + 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 + ;; + zellij__options) + opts="-h --disable-mouse-mode --no-pane-frames --simplified-ui --theme --default-mode --default-shell --default-cwd --default-layout --layout-dir --theme-dir --mouse-mode --pane-frames --mirror-session --on-force-close --scroll-buffer-size --copy-command --copy-clipboard --copy-on-select --scrollback-editor --session-name --attach-to-session --auto-layout --session-serialization --serialize-pane-viewport --scrollback-lines-to-serialize --styled-underlines --serialization-interval --disable-session-metadata --help" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --simplified-ui) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --theme) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --default-mode) + COMPREPLY=($(compgen -W "normal locked resize pane tab scroll enter-search search rename-tab rename-pane session move prompt tmux" -- "${cur}")) + return 0 + ;; + --default-shell) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --default-cwd) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --default-layout) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --layout-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --theme-dir) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --mouse-mode) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --pane-frames) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --mirror-session) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --on-force-close) + COMPREPLY=($(compgen -W "quit detach" -- "${cur}")) + return 0 + ;; + --scroll-buffer-size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --copy-command) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --copy-clipboard) + COMPREPLY=($(compgen -W "system primary" -- "${cur}")) + return 0 + ;; + --copy-on-select) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --scrollback-editor) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --session-name) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --attach-to-session) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --auto-layout) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --session-serialization) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --serialize-pane-viewport) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --scrollback-lines-to-serialize) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --styled-underlines) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + --serialization-interval) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --disable-session-metadata) + COMPREPLY=($(compgen -W "true false" -- "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__pipe) + opts="-n -a -p -c -h --name --args --plugin --plugin-configuration --help <PAYLOAD>" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --name) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -n) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --args) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -a) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --plugin) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --plugin-configuration) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__plugin) + opts="-c -f -i -s -x -y -h --configuration --floating --in-place --skip-plugin-cache --x --y --width --height --help <URL>" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --configuration) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --x) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -x) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --y) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -y) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --height) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__run) + opts="-d -f -i -n -c -s -x -y -h --direction --cwd --floating --in-place --name --close-on-exit --start-suspended --x --y --width --height --help <COMMAND>..." + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --direction) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -d) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cwd) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --name) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -n) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --x) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -x) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --y) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -y) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --height) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + zellij__setup) + opts="-h --dump-config --clean --check --dump-layout --dump-swap-layout --dump-plugins --generate-completion --generate-auto-start --help" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + --dump-layout) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --dump-swap-layout) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --dump-plugins) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --generate-completion) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --generate-auto-start) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + esac +} + +complete -F _zellij -o bashdefault -o default zellij +function zr () { zellij run --name "$*" -- bash -ic "$*";} +function zrf () { zellij run --name "$*" --floating -- bash -ic "$*";} +function zri () { zellij run --name "$*" --in-place -- bash -ic "$*";} +function ze () { zellij edit "$*";} +function zef () { zellij edit --floating "$*";} +function zei () { zellij edit --in-place "$*";} +function zpipe () { + if [ -z "$1" ]; then + zellij pipe; + else + zellij pipe -p $1; + fi +} diff --git a/profile/rda/envrcd.d/50-complete b/profile/rda/envrcd.d/50-complete index 568ebb9..8a13abb 100644 --- a/profile/rda/envrcd.d/50-complete +++ b/profile/rda/envrcd.d/50-complete @@ -21,10 +21,14 @@ complete -F _scp -o nospace gvimscp # py-ethz if [ -f ~/git/gitlab/py-ethz/bin/ethz-completion.bash ] && ! shopt -oq posix; then - . ~/git/gitlab/py-ethz/bin/ethz-completion.bash + source_if_exists ~/git/gitlab/py-ethz/bin/ethz-completion.bash fi -# fzf -if [ -x "$(command -v fzf)" ]; then - source_if_exists "${ENVRCD_PATH}/profile/_assets/fzf/init_fzf_bash.sh" -fi +# bash completions for local commands in ~/.local/bin +LOCAL_COMMANDS="fzf tldr zellij uv xh sd delta dust pdu dog hyperfine btm broot lsd eza" +for LOCAL_COMMAND in ${LOCAL_COMMANDS}; do + #if [ -x "$(command -v ${LOCAL_COMMAND})" ]; then # POSIX compatible + if hash ${LOCAL_COMMAND} 2>/dev/null; then # bash builtin + source_if_exists "${ENVRCD_PATH}/profile/_assets/completions/${LOCAL_COMMAND}_bash" + fi +done -- GitLab