diff options
author | Nat Lasseter <user@4574.co.uk> | 2017-01-19 10:54:32 +0000 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2017-01-19 10:54:32 +0000 |
commit | 07a17b442d7d7a397d076babfaa29fd2620921d7 (patch) | |
tree | 03d9095590bfe16b15d11b944b527c6d43b49e41 /bin |
Initial commit
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ssh-update-config | 8 |
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 |