Tmux Only For Long-Running Processes

This post describes a minimal Tmux workflow, used only for long-running processes. It is intended to reduce the cognitive load imposed by administrative debris of open tabs, panes, or windows. Set up Tmux for a Rails project From within a full-screen shell (to hide window chrome, status bars, notifications, the system clock, and other distractions), create a Tmux session for a Rails project: cd project-name tat tat (short for “tmux attach”) is a command from thoughtbot/dotfiles that names the Tmux session after the project’s directory name. That naming convention will help us re-attach to the session later using the same tat command. At this point, tat is the same thing as: tmux new -s `basename $PWD` Run the Rails app’s web and background processes with Foreman : foreman start The process manager is a long-running process. It is therefore a great candidate for Tmux. Run i...