Copying between tmux buffers and the system clipboard
One of the initially confusing things about tmux is that it has it's own set of buffers for copying and pasting data. Copying in tmux is easiest if you're using vi mode:
One of the initially confusing things about tmux is that it has it's own set of buffers for copying and pasting data. Copying in tmux is easiest if you're using vi mode:
You may have heard the expression "fat model, skinny controller" when talking about MVC frameworks. I'm going to try and convince you that why that's a misleading and potentially dangerous rule to follow.
The very first gem I ever created was actually pretty good. Apart from one thing: when you installed it, it didn't install the dependencies (i.e. the other gems that it depended upon). This might seem like a pretty big oversight, and it was, but there's a good reason. I actually did specify the dependencies - I just did it in the wrong place.
I sometimes find myself in the situation where I have a command running in my terminal, and want to run another command only after the first has finished. I'm pretty forgetful, so I don't want to come back later and start the new command.
Getting the PID of a running command is something I do daily, particularly by grepping on the name, e.g.: