From 1a0c88ba29dfa9890875aa777ad3513fa9801274 Mon Sep 17 00:00:00 2001 From: Nilesh Govindrajan Date: Fri, 19 Apr 2013 18:39:31 +0530 Subject: [PATCH] SSH host auto completion plugin for making sysadmin life easier. --- plugins/ssh/ssh.plugin.zsh | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 plugins/ssh/ssh.plugin.zsh diff --git a/plugins/ssh/ssh.plugin.zsh b/plugins/ssh/ssh.plugin.zsh new file mode 100644 index 000000000..761ec66bf --- /dev/null +++ b/plugins/ssh/ssh.plugin.zsh @@ -0,0 +1,54 @@ +# Plugin to make life of system administrators easier +# Author: Nilesh (http://nileshgr.com) +# +# How to use this plugin +# +# Add in your zshrc before sourcing oh-my-zsh.zsh +# +# typeset -A ssh_hosts +# ssh_hosts=('nickname' 'user@host1' \ +# 'nickname1' 'host2' \ +# 'nickname3' 'user2@host1' \ +# ) +# +# Once you've done that, reload your zshrc and try +# ssh +# It should give you the list of nicknames you specified (which can be selected by tabs) +# +# If you want to pass custom options to the ssh command, you can either +# add them in the map as '-v user@host1' +# or call the function as +# ssh nickname