Add "add_ssh" to add a new ssh host to the ~/.ssh/config file.

This commit is contained in:
Robert R Evans
2010-10-10 09:45:32 -07:00
parent 017fc1d402
commit 22d9179ff7
2 changed files with 7 additions and 0 deletions

5
plugins/ssh.plugins.bash Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
function add_ssh() {
echo -en "\n\nHost $1\n HostName $2\n User $3" >> ~/.ssh/config
}