I have set auto-completion in my .bashrc
as follows:
complete -W "$(echo `cat ~/.ssh_complete`;)" scp
but this ONLY used the words given in the file ~/.ssh_complete
. How is it possible to extend the definition so tab-completion on scp
also uses the names of files in the local directory.
A simple solution to my problem would do (filenames AND words in wordlist), I do not require tab-completion to recognize the format/details of the actual scp
command. Again: I want the tab-completion to show the names of the files in the current directory AND to show the entries given in the file ~/.ssh_complete
.
When there is a new suggestion I edit the file .bashrc
, source it, and try the tab-completion on scp
again.