I have a debian system on which my bash tab completion has a weird behavior.
When I write a command like scp file.tgz remoteServer:/home/remoteU
and hit tab it will complete to scp file.tgz /home/remoteUser
killing the host reference. This happens to me for any command ssh
related command referencing a remote directory like this.
I already checked my bash completion configuration but couldn't find anything related to deleting test before a colon as this is the character I suspect to be causing the behavior. Also interresting enough the remote system will first be queried for the correct directory.
Any suggestions?
bash
would have to connect to the server and investigate the path. Also, to access the home directory of the user that you connect as, you don't have to go the long way to specify the absolute path. Any relative path would be relative to the home directory of the user.