Ask HN: What was your “why didn't I start doing this sooner” moment?
630 pointsI read a similar thread on reddit (https://www.reddit.com/r/AskReddit/comments/4v3ts4/what_was_your_why_didnt_i_start_doing_this_sooner/) and thought that it would be interesting to know such moments from the HN community!
Comments (767) 174 threads
Show all comments
Showing thread 48 of 174
When the process exits in that screen session, screen session is closed so that you can rely on screen -list.
"Daemon mode" is the mode for tmux, and the whole stack is designed to be extremely scriptable. "tmux send-keys" does what you're referring to, here, but essentially anything you can do interactively, you can do via the command-line.
Not to say you shouldn't just keep doing what works for you! But figured I'd at least make mention of tmux as an alternative... I'm a fan. :)
And yet, this is a default shortcut for command mode in tmux. "But you can configure it!" — one might say. No, I won't be doing it on every system I manage, I have better things to do.
It all started with less(1)... Configuring it is a pain in the butt. One day, I couldn't remember how to do it on a new machine, so I just performed the following command...
It was wonderful! Now I do the same thing for my emacs config, and my .xsession, and my hosts files, etc.Since I use screen fairly often, it had never occurred to me (until fairly recently) that you can rely on it to start with a machine reboot -- and yet have the very familiar interface available to you when you want to intervene. Something to be said about muscle memory.