Skip to content
Myr

fdfind.bash

This file

Path

contrib/completion/fdfind.bash

8 lines · 299 bytes · Shell

Last changed by

Merge pull request #1889 from skane-lukas/issue-1888-fix-symlink-bash-completionThayne McCombsbefore adoptiona7a67e4

History of this file

Take it

Merge pull request #1889 from skane-lukas/issue-1888-fix-symlink-bash-completionThayne McCombsbefore adoptiona7a67e4

lines 1–8why, one step back
1# Source fd completions
2source /usr/share/bash-completion/completions/fd34if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then5 complete -F _fd -o nosort -o bashdefault -o default fdfind6else7 complete -F _fd -o bashdefault -o default fdfind8fi