mx
mx copied to clipboard
a tmux launcher and session manager
mx
Do you suffer from short programming attention span?
Do you have too many projects going on at once?
Try mx! mx creates project-specific terminal workspaces that remember where you were when you jump between your fancy new pizza-as-a-service app idea, the data stream from the hygrometer attached to your petunias, and your brand-new node.js HTTP framework!
mx leverages the power of tmux to create stateful workspaces for your projects, so you can work on lots of projects at once without losing your place. It'll change the way you work, I promise. Read more about the philosophy behind mx.
Demo
Usage
mx [project_name]
Opens a new tmux
session named [project_name]
(defaults to the name of the directory that you invoked mx
from). If $PROJECTS/[project_name]
is defined, open the session there. Otherwise, open in current directory.
If there is a .tmux
file in the session's directory, execute that file. Otherwise, open two windows -- one with $EDITOR
and the other with a plain shell prompt.
Installing
-
On OS X with homebrew:
brew tap demands/tap brew install mx
-
Other systems:
- Prerequisites:
-
bash v3.2.0
or higher (OS X Mavericks ships with3.2.51
by default) -
tmux 1.9
or higher
-
- Download and execute
mx
as a binary.
- Prerequisites:
Credits
Discovered in pengwynn's dotfiles, modified for general use.
License
MIT.