thecasualcoder / lazy-connect

Shell function to fuzzy search an IPSec VPN by name and connect to it automatically.
56 stars 17 forks source link

Disable update prompt with env, refresh vpn list without updating secret #1

Closed devdinu closed 6 years ago

devdinu commented 6 years ago
arunvelsriram commented 6 years ago

@devdinu auto update check is replaced with command option -u in the master. So changes related to that is not necessary.

Refresh VPN list option -r is great. Please rebase master and push the changes for -r option alone.

devdinu commented 6 years ago

Fixed conflicts and updated the PR.

arunvelsriram commented 6 years ago

lazy-connect -i is not working correctly. It's writing all the VPN names in on line in ~/.config/lazy-connect/vpns.

I suspect this https://github.com/arunvelsriram/lazy-connect/pull/1/commits/9f93393501ec5af877d2aff79046813b76167897#diff-7f006cb852c9dd49a430db80a7c9bac8R38

arunvelsriram commented 6 years ago

For new users this change introduces some issues. Here is the output of lazy-connect -i in a clean environment:

$ lazy-connect -i
Secret Key: **********
refreshing vpn...
cp: /Users/arunvelsriram/.config/lazy-connect/vpns: No such file or directory
Updated VPN List:

TODO: