File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#compdef fdfind
22
3- # Source completions from fd
4- source /usr/share/zsh/vendor-completions/_fd
5-
6- # Register _fd completions for fdfind
3+ autoload -Uz _fd
74compdef _fd fdfind
Original file line number Diff line number Diff line change 11# Source fd completions
22source /usr/share/bash-completion/completions/fd
33
4- # Complete with same options as fd
5- eval " $( complete -p fd | sed ' s/ fd$/ fdfind/' ) "
6- # Or
7- # if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then
8- # complete -F _fd -o nosort -o bashdefault -o default fdfind
9- # else
10- # complete -F _fd -o bashdefault -o default fdfind
11- # fi
4+ if [[ " ${BASH_VERSINFO[0]} " -eq 4 && " ${BASH_VERSINFO[1]} " -ge 4 || " ${BASH_VERSINFO[0]} " -gt 4 ]]; then
5+ complete -F _fd -o nosort -o bashdefault -o default fdfind
6+ else
7+ complete -F _fd -o bashdefault -o default fdfind
8+ fi
You can’t perform that action at this time.
0 commit comments