|
|
Or... just say "zsh"
In yet another "or just..." reply, we have: just switch to a nicer shell. If you use zsh as your shell the host completion stuff is implemented very nicely by default. You just add a list of hosts to your .zshrc file (in the form
Or... just say "zsh"
Bits of my .zshrc which pull hosts out of ~/.ssh/known_hosts (I stole this from somewhere and modified it) and enable the tab completion:
autoload -U compinit
compinit -C -d ~/.zcompdump_$ZSH_VERSION
typeset -aU hostnames
hostnames=(
host1.example.com
host2.example.com
host1.otherexample.com
)
[[ -f $HOME/.ssh/known_hosts ]] && hostnames+=(
${${${${(f)"$(
Or... just say "zsh"
Yikes, that should look like this: |
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.18 seconds |
|