Tmux -CC #start a new session spawning a new iterm window tmux -CC attach #reattach to that session which spawns the iterm window with everything the way it was How does this work? You actually utilize tmux as follows: So I did some searching and found out about iterm2?s actually pretty sweet tmux intergration! Except for again, this doesn’t work when using tmux since iterm doesn’t know about tmux’es panes. The other thing that would be nice is being able to use iterm2?s broadcast feature where you can enter a command that gets replicated on all your other panes. Note that this will select everything in the current pane and pane next to it as well since iterm sees all the tmux panes as one pane/window. You can get around this by holding Alt/Option when selecting text. One key thing that you loose using tmux is the ability to use copy/paste efficiently since when you highlight something, that is registered at the tmux level, not the OS/iterm2 level. You can search google for sample configs if you’d like to fiddle more. I also enabled the tmux plugin for oh-my-zsh which adds a few nice features, primarily allowing you to not have to type “attach”. #enable mouse support setw -g mode-mouse on set -g mouse-select-pane on set -g mouse-resize-pane on set -g mouse-select-window on One of the key things I loved about it was the epic mouse integration for scrolling, selecting panes, and resizing panes: So I experienced tmux last week for not the first time but the “definitive time” where I actually played/studied it and configured it to my liking.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |