diff options
Diffstat (limited to 'bash/bash_completion.d/ftp.bash')
-rw-r--r-- | bash/bash_completion.d/ftp.bash | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bash/bash_completion.d/ftp.bash b/bash/bash_completion.d/ftp.bash index e6d292a9..335d711a 100644 --- a/bash/bash_completion.d/ftp.bash +++ b/bash/bash_completion.d/ftp.bash @@ -30,4 +30,10 @@ _ftp() { COMPREPLY[${#COMPREPLY[@]}]=$machine done } -complete -F _ftp -o default ftp + +# bashdefault requires Bash >=3.0 +if ((BASH_VERSINFO[0] >= 3)) ; then + complete -F _ftp -o bashdefault -o default ftp +else + complete -F _ftp -o default ftp +fi |