aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2017-01-19 10:54:32 +0000
committerNat Lasseter <user@4574.co.uk>2017-01-19 10:54:32 +0000
commit07a17b442d7d7a397d076babfaa29fd2620921d7 (patch)
tree03d9095590bfe16b15d11b944b527c6d43b49e41 /bin
Initial commit
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ssh-update-config8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ssh-update-config b/bin/ssh-update-config
new file mode 100755
index 0000000..e6cfe93
--- /dev/null
+++ b/bin/ssh-update-config
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+require 'sshconfig'
+include SSHConfig
+
+File.open(File.join(ENV["HOME"], ".ssh/config"), "w") do |f|
+ load File.join(ENV["HOME"], ".ssh/sshconfig")
+ f.puts $hostlist
+end