diff --git a/profile/_assets/completions/broot_bash b/profile/_assets/completions/broot_bash deleted file mode 100644 index 7b2d9f50cf6045c9a245d396ab1faf8a495470fa..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/broot_bash +++ /dev/null @@ -1,90 +0,0 @@ -_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 deleted file mode 100644 index 5eb78a4b459e7f85ad0724d4d4647d69744f17dd..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/btm_bash +++ /dev/null @@ -1,102 +0,0 @@ -_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 deleted file mode 100644 index 124f73c35325aeca4520baf39b3c760ebde23375..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/delta_bash +++ /dev/null @@ -1,383 +0,0 @@ -_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 deleted file mode 100644 index dd46278ed2792692772d7432a6cfb1bb57a4dbd1..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/dog_bash +++ /dev/null @@ -1,48 +0,0 @@ -_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 deleted file mode 100644 index a0babd24fa9668cf5c5c7c69e001442edd851024..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/dust_bash +++ /dev/null @@ -1,188 +0,0 @@ -_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 deleted file mode 100644 index dbecd8a913c2497a13d8af9d5df052565d771b70..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/eza_bash +++ /dev/null @@ -1,76 +0,0 @@ -# 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/completions/fzf_bash b/profile/_assets/completions/fzf_bash deleted file mode 100644 index ad87ae975dc42fd675df57525f3ce912edb30613..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/fzf_bash +++ /dev/null @@ -1,721 +0,0 @@ -### key-bindings.bash ### -# ____ ____ -# / __/___ / __/ -# / /_/_ / / /_ -# / __/ / /_/ __/ -# /_/ /___/_/ key-bindings.bash -# -# - $FZF_TMUX_OPTS -# - $FZF_CTRL_T_COMMAND -# - $FZF_CTRL_T_OPTS -# - $FZF_CTRL_R_OPTS -# - $FZF_ALT_C_COMMAND -# - $FZF_ALT_C_OPTS - -if [[ $- =~ i ]]; then - - -# Key bindings -# ------------ - -__fzf_defaults() { - # $1: Prepend to FZF_DEFAULT_OPTS_FILE and FZF_DEFAULT_OPTS - # $2: Append to FZF_DEFAULT_OPTS_FILE and FZF_DEFAULT_OPTS - echo "--height ${FZF_TMUX_HEIGHT:-40%} --bind=ctrl-z:ignore $1" - command cat "${FZF_DEFAULT_OPTS_FILE-}" 2> /dev/null - echo "${FZF_DEFAULT_OPTS-} $2" -} - -__fzf_select__() { - FZF_DEFAULT_COMMAND=${FZF_CTRL_T_COMMAND:-} \ - FZF_DEFAULT_OPTS=$(__fzf_defaults "--reverse --walker=file,dir,follow,hidden --scheme=path" "${FZF_CTRL_T_OPTS-} -m") \ - FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd) "$@" | - while read -r item; do - printf '%q ' "$item" # escape special chars - done -} - -__fzfcmd() { - [[ -n "${TMUX_PANE-}" ]] && { [[ "${FZF_TMUX:-0}" != 0 ]] || [[ -n "${FZF_TMUX_OPTS-}" ]]; } && - echo "fzf-tmux ${FZF_TMUX_OPTS:--d${FZF_TMUX_HEIGHT:-40%}} -- " || echo "fzf" -} - -fzf-file-widget() { - local selected="$(__fzf_select__ "$@")" - READLINE_LINE="${READLINE_LINE:0:$READLINE_POINT}$selected${READLINE_LINE:$READLINE_POINT}" - READLINE_POINT=$(( READLINE_POINT + ${#selected} )) -} - -__fzf_cd__() { - local dir - dir=$( - FZF_DEFAULT_COMMAND=${FZF_ALT_C_COMMAND:-} \ - FZF_DEFAULT_OPTS=$(__fzf_defaults "--reverse --walker=dir,follow,hidden --scheme=path" "${FZF_ALT_C_OPTS-} +m") \ - FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd) - ) && printf 'builtin cd -- %q' "$(builtin unset CDPATH && builtin cd -- "$dir" && builtin pwd)" -} - -if command -v perl > /dev/null; then - __fzf_history__() { - local output script - script='BEGIN { getc; $/ = "\n\t"; $HISTCOUNT = $ENV{last_hist} + 1 } s/^[ *]//; s/\n/\n\t/gm; print $HISTCOUNT - $. . "\t$_" if !$seen{$_}++' - output=$( - set +o pipefail - builtin fc -lnr -2147483648 | - last_hist=$(HISTTIMEFORMAT='' builtin history 1) command perl -n -l0 -e "$script" | - FZF_DEFAULT_OPTS=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --wrap-sign '"$'\t'"↳ ' --highlight-line ${FZF_CTRL_R_OPTS-} +m --read0") \ - FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd) --query "$READLINE_LINE" - ) || return - READLINE_LINE=$(command perl -pe 's/^\d*\t//' <<< "$output") - if [[ -z "$READLINE_POINT" ]]; then - echo "$READLINE_LINE" - else - READLINE_POINT=0x7fffffff - fi - } -else # awk - fallback for POSIX systems - __fzf_history__() { - local output script n x y z d - if [[ -z $__fzf_awk ]]; then - __fzf_awk=awk - # choose the faster mawk if: it's installed && build date >= 20230322 && version >= 1.3.4 - IFS=' .' read n x y z d <<< $(command mawk -W version 2> /dev/null) - [[ $n == mawk ]] && (( d >= 20230302 && (x *1000 +y) *1000 +z >= 1003004 )) && __fzf_awk=mawk - fi - [[ $(HISTTIMEFORMAT='' builtin history 1) =~ [[:digit:]]+ ]] # how many history entries - script='function P(b) { ++n; sub(/^[ *]/, "", b); if (!seen[b]++) { printf "%d\t%s%c", '$((BASH_REMATCH + 1))' - n, b, 0 } } - NR==1 { b = substr($0, 2); next } - /^\t/ { P(b); b = substr($0, 2); next } - { b = b RS $0 } - END { if (NR) P(b) }' - output=$( - set +o pipefail - builtin fc -lnr -2147483648 2> /dev/null | # ( $'\t '<lines>$'\n' )* ; <lines> ::= [^\n]* ( $'\n'<lines> )* - command $__fzf_awk "$script" | # ( <counter>$'\t'<lines>$'\000' )* - FZF_DEFAULT_OPTS=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --wrap-sign '"$'\t'"↳ ' --highlight-line ${FZF_CTRL_R_OPTS-} +m --read0") \ - FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd) --query "$READLINE_LINE" - ) || return - READLINE_LINE=${output#*$'\t'} - if [[ -z "$READLINE_POINT" ]]; then - echo "$READLINE_LINE" - else - READLINE_POINT=0x7fffffff - fi - } -fi - -# Required to refresh the prompt after fzf -bind -m emacs-standard '"\er": redraw-current-line' - -bind -m vi-command '"\C-z": emacs-editing-mode' -bind -m vi-insert '"\C-z": emacs-editing-mode' -bind -m emacs-standard '"\C-z": vi-editing-mode' - -if (( BASH_VERSINFO[0] < 4 )); then - # CTRL-T - Paste the selected file path into the command line - if [[ "${FZF_CTRL_T_COMMAND-x}" != "" ]]; then - bind -m emacs-standard '"\C-t": " \C-b\C-k \C-u`__fzf_select__`\e\C-e\er\C-a\C-y\C-h\C-e\e \C-y\ey\C-x\C-x\C-f"' - bind -m vi-command '"\C-t": "\C-z\C-t\C-z"' - bind -m vi-insert '"\C-t": "\C-z\C-t\C-z"' - fi - - # CTRL-R - Paste the selected command from history into the command line - bind -m emacs-standard '"\C-r": "\C-e \C-u\C-y\ey\C-u`__fzf_history__`\e\C-e\er"' - bind -m vi-command '"\C-r": "\C-z\C-r\C-z"' - bind -m vi-insert '"\C-r": "\C-z\C-r\C-z"' -else - # CTRL-T - Paste the selected file path into the command line - if [[ "${FZF_CTRL_T_COMMAND-x}" != "" ]]; then - bind -m emacs-standard -x '"\C-t": fzf-file-widget' - bind -m vi-command -x '"\C-t": fzf-file-widget' - bind -m vi-insert -x '"\C-t": fzf-file-widget' - fi - - # CTRL-R - Paste the selected command from history into the command line - bind -m emacs-standard -x '"\C-r": __fzf_history__' - bind -m vi-command -x '"\C-r": __fzf_history__' - bind -m vi-insert -x '"\C-r": __fzf_history__' -fi - -# ALT-C - cd into the selected directory -if [[ "${FZF_ALT_C_COMMAND-x}" != "" ]]; then - bind -m emacs-standard '"\ec": " \C-b\C-k \C-u`__fzf_cd__`\e\C-e\er\C-m\C-y\C-h\e \C-y\ey\C-x\C-x\C-d"' - bind -m vi-command '"\ec": "\C-z\ec\C-z"' - bind -m vi-insert '"\ec": "\C-z\ec\C-z"' -fi - -fi -### end: key-bindings.bash ### -### completion.bash ### -# ____ ____ -# / __/___ / __/ -# / /_/_ / / /_ -# / __/ / /_/ __/ -# /_/ /___/_/ completion.bash -# -# - $FZF_TMUX (default: 0) -# - $FZF_TMUX_OPTS (default: empty) -# - $FZF_COMPLETION_TRIGGER (default: '**') -# - $FZF_COMPLETION_OPTS (default: empty) -# - $FZF_COMPLETION_PATH_OPTS (default: empty) -# - $FZF_COMPLETION_DIR_OPTS (default: empty) - -if [[ $- =~ i ]]; then - - -# To use custom commands instead of find, override _fzf_compgen_{path,dir} -# -# _fzf_compgen_path() { -# echo "$1" -# command find -L "$1" \ -# -name .git -prune -o -name .hg -prune -o -name .svn -prune -o \( -type d -o -type f -o -type l \) \ -# -a -not -path "$1" -print 2> /dev/null | command sed 's@^\./@@' -# } -# -# _fzf_compgen_dir() { -# command find -L "$1" \ -# -name .git -prune -o -name .hg -prune -o -name .svn -prune -o -type d \ -# -a -not -path "$1" -print 2> /dev/null | command sed 's@^\./@@' -# } - -########################################################### - -# To redraw line after fzf closes (printf '\e[5n') -bind '"\e[0n": redraw-current-line' 2> /dev/null - -__fzf_defaults() { - # $1: Prepend to FZF_DEFAULT_OPTS_FILE and FZF_DEFAULT_OPTS - # $2: Append to FZF_DEFAULT_OPTS_FILE and FZF_DEFAULT_OPTS - echo "--height ${FZF_TMUX_HEIGHT:-40%} --bind=ctrl-z:ignore $1" - command cat "${FZF_DEFAULT_OPTS_FILE-}" 2> /dev/null - echo "${FZF_DEFAULT_OPTS-} $2" -} - -__fzf_comprun() { - if [[ "$(type -t _fzf_comprun 2>&1)" = function ]]; then - _fzf_comprun "$@" - elif [[ -n "${TMUX_PANE-}" ]] && { [[ "${FZF_TMUX:-0}" != 0 ]] || [[ -n "${FZF_TMUX_OPTS-}" ]]; }; then - shift - fzf-tmux ${FZF_TMUX_OPTS:--d${FZF_TMUX_HEIGHT:-40%}} -- "$@" - else - shift - fzf "$@" - fi -} - -__fzf_orig_completion() { - local l comp f cmd - while read -r l; do - if [[ "$l" =~ ^(.*\ -F)\ *([^ ]*).*\ ([^ ]*)$ ]]; then - comp="${BASH_REMATCH[1]}" - f="${BASH_REMATCH[2]}" - cmd="${BASH_REMATCH[3]}" - [[ "$f" = _fzf_* ]] && continue - printf -v "_fzf_orig_completion_${cmd//[^A-Za-z0-9_]/_}" "%s" "${comp} %s ${cmd} #${f}" - if [[ "$l" = *" -o nospace "* ]] && [[ ! "${__fzf_nospace_commands-}" = *" $cmd "* ]]; then - __fzf_nospace_commands="${__fzf_nospace_commands-} $cmd " - fi - fi - done -} - -# @param $1 cmd - Command name for which the original completion is searched -# @var[out] REPLY - Original function name is returned -__fzf_orig_completion_get_orig_func() { - local cmd orig_var orig - cmd=$1 - orig_var="_fzf_orig_completion_${cmd//[^A-Za-z0-9_]/_}" - orig="${!orig_var-}" - REPLY="${orig##*#}" - [[ $REPLY ]] && type "$REPLY" &> /dev/null -} - -# @param $1 cmd - Command name for which the original completion is searched -# @param $2 func - Fzf's completion function to replace the original function -# @var[out] REPLY - Completion setting is returned as a string to "eval" -__fzf_orig_completion_instantiate() { - local cmd func orig_var orig - cmd=$1 - func=$2 - orig_var="_fzf_orig_completion_${cmd//[^A-Za-z0-9_]/_}" - orig="${!orig_var-}" - orig="${orig%#*}" - [[ $orig == *' %s '* ]] || return 1 - printf -v REPLY "$orig" "$func" -} - -_fzf_opts_completion() { - local cur prev opts - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - opts=" - +c --no-color - +i --no-ignore-case - +s --no-sort - +x --no-extended - --ansi - --bash - --bind - --border - --border-label - --border-label-pos - --color - --cycle - --disabled - --ellipsis - --expect - --filepath-word - --fish - --header - --header-first - --header-lines - --height - --highlight-line - --history - --history-size - --hscroll-off - --info - --jump-labels - --keep-right - --layout - --listen - --listen-unsafe - --literal - --man - --margin - --marker - --min-height - --no-bold - --no-clear - --no-hscroll - --no-mouse - --no-scrollbar - --no-separator - --no-unicode - --padding - --pointer - --preview - --preview-label - --preview-label-pos - --preview-window - --print-query - --print0 - --prompt - --read0 - --reverse - --scheme - --scroll-off - --separator - --sync - --tabstop - --tac - --tiebreak - --tmux - --track - --version - --with-nth - --with-shell - --wrap - --zsh - -0 --exit-0 - -1 --select-1 - -d --delimiter - -e --exact - -f --filter - -h --help - -i --ignore-case - -m --multi - -n --nth - -q --query - --" - - case "${prev}" in - --scheme) - COMPREPLY=( $(compgen -W "default path history" -- "$cur") ) - return 0 - ;; - --tiebreak) - COMPREPLY=( $(compgen -W "length chunk begin end index" -- "$cur") ) - return 0 - ;; - --color) - COMPREPLY=( $(compgen -W "dark light 16 bw no" -- "$cur") ) - return 0 - ;; - --layout) - COMPREPLY=( $(compgen -W "default reverse reverse-list" -- "$cur") ) - return 0 - ;; - --info) - COMPREPLY=( $(compgen -W "default right hidden inline inline-right" -- "$cur") ) - return 0 - ;; - --preview-window) - COMPREPLY=( $(compgen -W " - default - hidden - nohidden - wrap - nowrap - cycle - nocycle - up top - down bottom - left - right - rounded border border-rounded - sharp border-sharp - border-bold - border-block - border-thinblock - border-double - noborder border-none - border-horizontal - border-vertical - border-up border-top - border-down border-bottom - border-left - border-right - follow - nofollow" -- "$cur") ) - return 0 - ;; - --border) - COMPREPLY=( $(compgen -W "rounded sharp bold block thinblock double horizontal vertical top bottom left right none" -- "$cur") ) - return 0 - ;; - --border-label-pos|--preview-label-pos) - COMPREPLY=( $(compgen -W "center bottom top" -- "$cur") ) - return 0 - ;; - esac - - if [[ "$cur" =~ ^-|\+ ]]; then - COMPREPLY=( $(compgen -W "${opts}" -- "$cur") ) - return 0 - fi - - return 0 -} - -_fzf_handle_dynamic_completion() { - local cmd ret REPLY orig_cmd orig_complete - cmd="$1" - shift - orig_cmd="$1" - if __fzf_orig_completion_get_orig_func "$cmd"; then - "$REPLY" "$@" - elif [[ -n "${_fzf_completion_loader-}" ]]; then - orig_complete=$(complete -p "$orig_cmd" 2> /dev/null) - $_fzf_completion_loader "$@" - ret=$? - # _completion_loader may not have updated completion for the command - if [[ "$(complete -p "$orig_cmd" 2> /dev/null)" != "$orig_complete" ]]; then - __fzf_orig_completion < <(complete -p "$orig_cmd" 2> /dev/null) - - # Update orig_complete by _fzf_orig_completion entry - [[ $orig_complete =~ ' -F '(_fzf_[^ ]+)' ' ]] && - __fzf_orig_completion_instantiate "$cmd" "${BASH_REMATCH[1]}" && - orig_complete=$REPLY - - if [[ "${__fzf_nospace_commands-}" = *" $orig_cmd "* ]]; then - eval "${orig_complete/ -F / -o nospace -F }" - else - eval "$orig_complete" - fi - fi - [[ $ret -eq 0 ]] && return 124 - return $ret - fi -} - -__fzf_generic_path_completion() { - local cur base dir leftover matches trigger cmd - cmd="${COMP_WORDS[0]}" - if [[ $cmd == \\* ]]; then - cmd="${cmd:1}" - fi - COMPREPLY=() - trigger=${FZF_COMPLETION_TRIGGER-'**'} - cur="${COMP_WORDS[COMP_CWORD]}" - if [[ "$cur" == *"$trigger" ]] && [[ $cur != *'$('* ]] && [[ $cur != *':='* ]] && [[ $cur != *'`'* ]]; then - base=${cur:0:${#cur}-${#trigger}} - eval "base=$base" 2> /dev/null || return - - dir= - [[ $base = *"/"* ]] && dir="$base" - while true; do - if [[ -z "$dir" ]] || [[ -d "$dir" ]]; then - leftover=${base/#"$dir"} - leftover=${leftover/#\/} - [[ -z "$dir" ]] && dir='.' - [[ "$dir" != "/" ]] && dir="${dir/%\//}" - matches=$( - export FZF_DEFAULT_OPTS=$(__fzf_defaults "--reverse --scheme=path" "${FZF_COMPLETION_OPTS-} $2") - unset FZF_DEFAULT_COMMAND FZF_DEFAULT_OPTS_FILE - if declare -F "$1" > /dev/null; then - eval "$1 $(printf %q "$dir")" | __fzf_comprun "$4" -q "$leftover" - else - if [[ $1 =~ dir ]]; then - walker=dir,follow - rest=${FZF_COMPLETION_DIR_OPTS-} - else - walker=file,dir,follow,hidden - rest=${FZF_COMPLETION_PATH_OPTS-} - fi - __fzf_comprun "$4" -q "$leftover" --walker "$walker" --walker-root="$dir" $rest - fi | while read -r item; do - printf "%q " "${item%$3}$3" - done - ) - matches=${matches% } - [[ -z "$3" ]] && [[ "${__fzf_nospace_commands-}" = *" ${COMP_WORDS[0]} "* ]] && matches="$matches " - if [[ -n "$matches" ]]; then - COMPREPLY=( "$matches" ) - else - COMPREPLY=( "$cur" ) - fi - printf '\e[5n' - return 0 - fi - dir=$(command dirname "$dir") - [[ "$dir" =~ /$ ]] || dir="$dir"/ - done - else - shift - shift - shift - _fzf_handle_dynamic_completion "$cmd" "$@" - fi -} - -_fzf_complete() { - # Split arguments around -- - local args rest str_arg i sep - args=("$@") - sep= - for i in "${!args[@]}"; do - if [[ "${args[$i]}" = -- ]]; then - sep=$i - break - fi - done - if [[ -n "$sep" ]]; then - str_arg= - rest=("${args[@]:$((sep + 1)):${#args[@]}}") - args=("${args[@]:0:$sep}") - else - str_arg=$1 - args=() - shift - rest=("$@") - fi - - local cur selected trigger cmd post - post="$(caller 0 | command awk '{print $2}')_post" - type -t "$post" > /dev/null 2>&1 || post='command cat' - - trigger=${FZF_COMPLETION_TRIGGER-'**'} - cmd="${COMP_WORDS[0]}" - cur="${COMP_WORDS[COMP_CWORD]}" - if [[ "$cur" == *"$trigger" ]] && [[ $cur != *'$('* ]] && [[ $cur != *':='* ]] && [[ $cur != *'`'* ]]; then - cur=${cur:0:${#cur}-${#trigger}} - - selected=$( - FZF_DEFAULT_OPTS=$(__fzf_defaults "--reverse" "${FZF_COMPLETION_OPTS-} $str_arg") \ - FZF_DEFAULT_OPTS_FILE='' \ - __fzf_comprun "${rest[0]}" "${args[@]}" -q "$cur" | $post | command tr '\n' ' ') - selected=${selected% } # Strip trailing space not to repeat "-o nospace" - if [[ -n "$selected" ]]; then - COMPREPLY=("$selected") - else - COMPREPLY=("$cur") - fi - printf '\e[5n' - return 0 - else - _fzf_handle_dynamic_completion "$cmd" "${rest[@]}" - fi -} - -_fzf_path_completion() { - __fzf_generic_path_completion _fzf_compgen_path "-m" "" "$@" -} - -# Deprecated. No file only completion. -_fzf_file_completion() { - _fzf_path_completion "$@" -} - -_fzf_dir_completion() { - __fzf_generic_path_completion _fzf_compgen_dir "" "/" "$@" -} - -_fzf_complete_kill() { - _fzf_proc_completion "$@" -} - -_fzf_proc_completion() { - _fzf_complete -m --header-lines=1 --no-preview --wrap -- "$@" < <( - command ps -eo user,pid,ppid,start,time,command 2> /dev/null || - command ps -eo user,pid,ppid,time,args # For BusyBox - ) -} - -_fzf_proc_completion_post() { - command awk '{print $2}' -} - -# To use custom hostname lists, override __fzf_list_hosts. -# The function is expected to print hostnames, one per line as well as in the -# desired sorting and with any duplicates removed, to standard output. -# -# e.g. -# # Use bash-completions’s _known_hosts_real() for getting the list of hosts -# __fzf_list_hosts() { -# # Set the local attribute for any non-local variable that is set by _known_hosts_real() -# local COMPREPLY=() -# _known_hosts_real '' -# printf '%s\n' "${COMPREPLY[@]}" | command sort -u --version-sort -# } -if ! declare -F __fzf_list_hosts > /dev/null; then - __fzf_list_hosts() { - command cat <(command tail -n +1 ~/.ssh/config ~/.ssh/config.d/* /etc/ssh/ssh_config 2> /dev/null | command grep -i '^\s*host\(name\)\? ' | command awk '{for (i = 2; i <= NF; i++) print $1 " " $i}' | command grep -v '[*?%]') \ - <(command grep -oE '^[[a-z0-9.,:-]+' ~/.ssh/known_hosts 2> /dev/null | command tr ',' '\n' | command tr -d '[' | command awk '{ print $1 " " $1 }') \ - <(command grep -v '^\s*\(#\|$\)' /etc/hosts 2> /dev/null | command grep -Fv '0.0.0.0' | command sed 's/#.*//') | - command awk '{for (i = 2; i <= NF; i++) print $i}' | command sort -u - } -fi - -_fzf_host_completion() { - _fzf_complete +m -- "$@" < <(__fzf_list_hosts) -} - -# Values for $1 $2 $3 are described here -# https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion.html -# > the first argument ($1) is the name of the command whose arguments are being completed, -# > the second argument ($2) is the word being completed, -# > and the third argument ($3) is the word preceding the word being completed on the current command line. -_fzf_complete_ssh() { - case $3 in - -i|-F|-E) - _fzf_path_completion "$@" - ;; - *) - local user= - [[ "$2" =~ '@' ]] && user="${2%%@*}@" - _fzf_complete +m -- "$@" < <(__fzf_list_hosts | command awk -v user="$user" '{print user $0}') - ;; - esac -} - -_fzf_var_completion() { - _fzf_complete -m -- "$@" < <( - declare -xp | command sed -En 's|^declare [^ ]+ ([^=]+).*|\1|p' - ) -} - -_fzf_alias_completion() { - _fzf_complete -m -- "$@" < <( - alias | command sed -En 's|^alias ([^=]+).*|\1|p' - ) -} - -# fzf options -complete -o default -F _fzf_opts_completion fzf -# fzf-tmux is a thin fzf wrapper that has only a few more options than fzf -# itself. As a quick improvement we take fzf's completion. Adding the few extra -# fzf-tmux specific options (like `-w WIDTH`) are left as a future patch. -complete -o default -F _fzf_opts_completion fzf-tmux - -d_cmds="${FZF_COMPLETION_DIR_COMMANDS-cd pushd rmdir}" - -# NOTE: $FZF_COMPLETION_PATH_COMMANDS and $FZF_COMPLETION_VAR_COMMANDS are -# undocumented and subject to change in the future. -a_cmds="${FZF_COMPLETION_PATH_COMMANDS-" - awk bat cat code diff diff3 - emacs emacsclient ex file ftp g++ gcc gvim head hg hx java - javac ld less more mvim nvim patch perl python ruby - sed sftp sort source tail tee uniq vi view vim wc xdg-open - basename bunzip2 bzip2 chmod chown curl cp dirname du - find git grep gunzip gzip hg jar - ln ls mv open rm rsync scp - svn tar unzip zip"}" -v_cmds="${FZF_COMPLETION_VAR_COMMANDS-export unset printenv}" - -# Preserve existing completion -__fzf_orig_completion < <(complete -p $d_cmds $a_cmds $v_cmds unalias kill ssh 2> /dev/null) - -if type _comp_load > /dev/null 2>&1; then - # _comp_load was added in bash-completion 2.12 to replace _completion_loader. - # We use it without -D option so that it does not use _comp_complete_minimal as the fallback. - _fzf_completion_loader=_comp_load -elif type __load_completion > /dev/null 2>&1; then - # In bash-completion 2.11, _completion_loader internally calls __load_completion - # and if it returns a non-zero status, it sets the default 'minimal' completion. - _fzf_completion_loader=__load_completion -elif type _completion_loader > /dev/null 2>&1; then - _fzf_completion_loader=_completion_loader -fi - -__fzf_defc() { - local cmd func opts REPLY - cmd="$1" - func="$2" - opts="$3" - if __fzf_orig_completion_instantiate "$cmd" "$func"; then - eval "$REPLY" - else - complete -F "$func" $opts "$cmd" - fi -} - -# Anything -for cmd in $a_cmds; do - __fzf_defc "$cmd" _fzf_path_completion "-o default -o bashdefault" -done - -# Directory -for cmd in $d_cmds; do - __fzf_defc "$cmd" _fzf_dir_completion "-o bashdefault -o nospace -o dirnames" -done - -# Variables -for cmd in $v_cmds; do - __fzf_defc "$cmd" _fzf_var_completion "-o default -o nospace -v" -done - -# Aliases -__fzf_defc unalias _fzf_alias_completion "-a" - -# Processes -__fzf_defc kill _fzf_proc_completion "-o default -o bashdefault" - -# ssh -__fzf_defc ssh _fzf_complete_ssh "-o default -o bashdefault" - -unset cmd d_cmds a_cmds v_cmds - -_fzf_setup_completion() { - local kind fn cmd - kind=$1 - fn=_fzf_${1}_completion - if [[ $# -lt 2 ]] || ! type -t "$fn" > /dev/null; then - echo "usage: ${FUNCNAME[0]} path|dir|var|alias|host|proc COMMANDS..." - return 1 - fi - shift - __fzf_orig_completion < <(complete -p "$@" 2> /dev/null) - for cmd in "$@"; do - case "$kind" in - dir) __fzf_defc "$cmd" "$fn" "-o nospace -o dirnames" ;; - var) __fzf_defc "$cmd" "$fn" "-o default -o nospace -v" ;; - alias) __fzf_defc "$cmd" "$fn" "-a" ;; - *) __fzf_defc "$cmd" "$fn" "-o default -o bashdefault" ;; - esac - done -} - -fi -### end: completion.bash ### diff --git a/profile/_assets/completions/hyperfine_bash b/profile/_assets/completions/hyperfine_bash deleted file mode 100644 index 32492601ad24316e1f64a1383dde84b486c22909..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/hyperfine_bash +++ /dev/null @@ -1,182 +0,0 @@ -_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 deleted file mode 100644 index 7ba2aeb9011d9f287037f542e96d9b12b54a6d41..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/lsd_bash +++ /dev/null @@ -1,106 +0,0 @@ -_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 deleted file mode 100644 index a1858ed41def27ae74bf424fcc167436f9516207..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/pdu_bash +++ /dev/null @@ -1,66 +0,0 @@ -_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 deleted file mode 100644 index b3e8b717fc07e73cc721ba157def45f80d7a81a6..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/sd_bash +++ /dev/null @@ -1,54 +0,0 @@ -_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 deleted file mode 100644 index 507e956fe5629a96c5e28826ff09796251370742..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/tldr_bash +++ /dev/null @@ -1,34 +0,0 @@ -# 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 deleted file mode 100644 index 119eb68a7ef1de20e8724f52e573f71dc2825630..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/uv_bash +++ /dev/null @@ -1,3994 +0,0 @@ -_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 deleted file mode 100644 index ed02a4981f62ef5eca8ebe9dc9ac5aad8a00b469..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/xh_bash +++ /dev/null @@ -1,166 +0,0 @@ -_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 deleted file mode 100644 index d0a39d8baa3765d23720b4d18e651d2f26fe76e7..0000000000000000000000000000000000000000 --- a/profile/_assets/completions/zellij_bash +++ /dev/null @@ -1,1883 +0,0 @@ -_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 -}