vaniacer / sshto

Small bash script to manage your ssh connections. It builds menu (via dialog) from your ~/.ssh/config. It can not only connect but also to run commands, copy files, tunnel ports.
MIT License
579 stars 59 forks source link

Add MacOS Compatibility #3

Closed mattdonders closed 5 years ago

mattdonders commented 5 years ago

Just found this script (exactly what I've been looking for) & running this on MacOS and I found the following two issues that I can fix via PR if you'd like.

  1. If dialog not installed on the system, the script recommends I run the command sudo apt-get install -y dialog where I use brew install dialog on my MacOS system.

  2. When you exit the dialog, you get the following error due to the ls --color=auto command.

    ls: illegal option -- -
    usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...]

Let me know if you'd like me to code up these fixes using uname -s detection of a MacOS system.

Thanks!

vaniacer commented 5 years ago

Hi, yes i'd like to!