|
|
Better still...
If you list your servers as machines in NetInfo, (which is where we do that sort of thing in X) then you can just change your /usr/share/init/tcsh/completions file to read:
# Override this with something smarter if you wish This prevents you from having to to edit a hosts file. (BTW, /etc/hosts would have worked just fine. The "smarter" thing to do is use nidump.) Also, any changes made to NetInfo (THE place to be in 2001!) are automatically incorporated in to your ssh completions. The reason you want to avoid using /etc/hosts (which is where most *NIX systems define server aliases) Is because OSX uses NetInfo to keep track of that sort of thing (it's more network friendly) and does not read /etc/hosts by default. nidump reads the NetInfo server aliases and dumps them in the same format as /etc/hosts, so we can use it to define our server completions. Post if you need help defining new machines in NetInfo Manager, but basically, they will look like the 'localhost' entry, minus the 'serves' parameter (which I think is used to ID NetInfo domains). |
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.07 seconds |
|