|
|
How much more than ssh?
Could you post a completion for scp by any chance? Pretty please? I'm too lazy/busy to figure out how they work. I'll take one of the list_all_hostnames flavor, please. ;)
This much more than ssh!
Wow! Trying to find a pattern that matches for both styles of scp was a pain in the ass (the first style being transfering a file to a server the second being receiving a file from a server). I eventually found one that partially worked and modified it to work better.
I fixed the username!
A little playing around with Cadre's complete yielded:
complete {scp,rcp} 'C@[./]*@f@' 'c/*@/`list_all_hostnames`/:' 'n/*/`list_all_hostnames`/:'
This will still allow you to tab-complete hostnames after specifying a username. scp root@ot[TAB] becomes scp root@otherhost: I wanted this because sometimes I do work on other boxen as root, but I agree with Cadre's assertion that you should specify your normal username for the other box in ~/.ssh/config. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|