Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b110de4
)
Added sshosts to view all the ssh config hosts that have been added. This command...
author
Robert R Evans
<robert@codewranglers.org>
Tue, 12 Oct 2010 17:11:21 +0000
(10:11 -0700)
committer
Robert R Evans
<robert@codewranglers.org>
Tue, 12 Oct 2010 17:11:21 +0000
(10:11 -0700)
that you would use for ssh/scp.
plugins/ssh.plugins.bash
patch
|
blob
|
history
diff --git
a/plugins/ssh.plugins.bash
b/plugins/ssh.plugins.bash
index
872d111
..
d771b3f
100644
(file)
--- a/
plugins/ssh.plugins.bash
+++ b/
plugins/ssh.plugins.bash
@@
-2,4
+2,8
@@
function add_ssh() {
echo -en "\n\nHost $1\n HostName $2\n User $3\n ServerAliveInterval 30\n ServerAliveCountMax 120" >> ~/.ssh/config
+}
+
+function sshosts() {
+ awk '$1 ~ /Host$/ { print $2 }' ~/.ssh/config
}
\ No newline at end of file