Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
sniprun
A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
Check out MOSH - it can help you with other connection related terminal issues. It uses SSH as a backend for authentication and it doesn't need any system-wide modifications, so it can be used on user accounts without any extra privileges.
I managed to clean things up, and the updated script is here, where it now creates the master SSH connection when it starts, then exits the connection when interrupted. I've tested it out, and I'm quite happy with how it turns out. Thank you again for the tips!
As long as you're not doing bigger projects, plugins like sniprun (shameless self-plug, neovim-only though) or vim-terminator may be better than the save-run workflow, actually
Great! I remembered another utility I'd found in the past called lsyncd: https://github.com/axkibe/lsyncd. I'm not sure I'd recommend using it (unmaintained and much less lean than your current solution), but looking at that reminded me of two things I think can probably still be improved upon: