Skip to content

Commit

Permalink
asciinema.org cast - https://asciinema.org/a/164783
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Terentev committed Feb 22, 2018
1 parent 67a3328 commit 5a1d6cc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sshed - SSH config editor and hosts manager
Visual editor created to manage list of ssh hosts in ssh config file.
sshed uses native ``ssh_config`` format to store connections information and supports all available ssh options.

![Interface](gui.gif)
[![asciicast](https://asciinema.org/a/164783.png)](https://asciinema.org/a/164783)

# Installation
download binary [here](https://github.com/trntv/sshed/releases)
Expand Down
Binary file removed gui.gif
Binary file not shown.
9 changes: 6 additions & 3 deletions ssh/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ type sshConfig struct {

func Parse(path string) (err error) {
Config = &sshConfig{Path: path}
Config.Content, err = ioutil.ReadFile(path)
if err != nil {
return err

if _, err := os.Stat(Config.Path); os.IsNotExist(err) == false {
Config.Content, err = ioutil.ReadFile(Config.Path)
if err != nil {
return err
}
}

Config.cfg, err = ssh_config.Decode(bytes.NewReader(Config.Content))
Expand Down
2 changes: 1 addition & 1 deletion sshed.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Sshme < Formula
class Sshed < Formula
homepage "https://github.com/trntv/sshed"
url "https://github.com/trntv/sshed.git", :tag => "1.0.0"
version "1.0.0"
Expand Down

0 comments on commit 5a1d6cc

Please sign in to comment.