diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-28 15:42:50 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-28 15:42:50 +0900 |
| commit | ae78dbbff81196f1d7bc8fabf84d05e6b9f3ca03 (patch) | |
| tree | fdc69ee3e2772aa4db7e8efe4bd30d101c7f82ac /fedora/.config/bash/completions/yazi.bash | |
| parent | 06ad645351572c0e7188c52028998384d718df2e (diff) | |
Diffstat (limited to 'fedora/.config/bash/completions/yazi.bash')
| -rw-r--r-- | fedora/.config/bash/completions/yazi.bash | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/fedora/.config/bash/completions/yazi.bash b/fedora/.config/bash/completions/yazi.bash deleted file mode 100644 index ae2d3a1..0000000 --- a/fedora/.config/bash/completions/yazi.bash +++ /dev/null @@ -1,66 +0,0 @@ -_yazi() { - local i cur prev opts cmd - COMPREPLY=() - if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then - cur="$2" - else - cur="${COMP_WORDS[COMP_CWORD]}" - fi - prev="$3" - cmd="" - opts="" - - for i in "${COMP_WORDS[@]:0:COMP_CWORD}" - do - case "${cmd},${i}" in - ",$1") - cmd="yazi" - ;; - *) - ;; - esac - done - - case "${cmd}" in - yazi) - opts="-V -h --cwd-file --chooser-file --clear-cache --client-id --local-events --remote-events --debug --version --help [ENTRIES]..." - if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then - COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) - return 0 - fi - case "${prev}" in - --cwd-file) - COMPREPLY=($(compgen -f "${cur}")) - return 0 - ;; - --chooser-file) - COMPREPLY=($(compgen -f "${cur}")) - return 0 - ;; - --client-id) - COMPREPLY=($(compgen -f "${cur}")) - return 0 - ;; - --local-events) - COMPREPLY=($(compgen -f "${cur}")) - return 0 - ;; - --remote-events) - 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 _yazi -o nosort -o bashdefault -o default yazi -else - complete -F _yazi -o bashdefault -o default yazi -fi |
