Presumably this is a feature provided by some plugin I have enabled in my oh-my-zsh setup (I have been using zsh for many years now).
I noticed ever since I added my public key to the server (now I can SSH to the server without entering a password), when I compose a scp command in my shell I am actually able to tab-complete remote file paths!
e.g.
$ diff <(scp Remoteuser@remote.domain.net:/var/www/html/
I hit tab and it just works! (as for what i am trying to accomplish with the command itself, I am going to use scp to "copy" to stdout, and feed that as a file to diff. This way I can see the exact changes I deploy to the server prior to running rsync)
I'm curious about what are the pieces that make this work so well. Is it something built into scp that was integrated with z shell? Or something else?
zsh. Is it possible inbash. – shivams May 17 '15 at 16:08