diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-12 20:55:58 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-10-12 20:55:58 +1300 |
commit | 092652424fab8004907f87472cc795fb527ee20b (patch) | |
tree | 42c8e0c13d1e616fef204ae46cbed37238cb0b7c /bash/bashrc.d/ftp.bash | |
parent | Adjust declarations of local vars in compspecs (diff) | |
download | dotfiles-092652424fab8004907f87472cc795fb527ee20b.tar.gz dotfiles-092652424fab8004907f87472cc795fb527ee20b.zip |
Use default completion on empty COMPREPLY
Diffstat (limited to 'bash/bashrc.d/ftp.bash')
-rw-r--r-- | bash/bashrc.d/ftp.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/ftp.bash b/bash/bashrc.d/ftp.bash index e46cc474..04518b5f 100644 --- a/bash/bashrc.d/ftp.bash +++ b/bash/bashrc.d/ftp.bash @@ -5,6 +5,7 @@ _ftp() { # Bail if the .netrc file is illegible local netrc=$HOME/.netrc if [[ ! -r $netrc ]]; then + COMPREPLY=() return 1 fi @@ -27,5 +28,5 @@ _ftp() { # Generate completion reply COMPREPLY=( $(compgen -W "${machines[*]}" -- "$word") ) } -complete -F _ftp ftp +complete -F _ftp -o default ftp |