From 07a17b442d7d7a397d076babfaa29fd2620921d7 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Thu, 19 Jan 2017 10:54:32 +0000 Subject: Initial commit --- bin/ssh-update-config | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/ssh-update-config (limited to 'bin/ssh-update-config') 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 -- cgit v1.2.1