![]() After that they’re either hooked and want to try it themselves or they tell me to go away with my ancient neckbeard tools and just use iTerm2. In the former case I’ll usually end up helping them installing tmux on their machine and will give them a 10 minute guide to learn the most important basics. If you’ve got 10 minutes to spare and finally want to be more proficient with tmux: read on! What’s tmux? This post will give you the same two minute introduction about tmux and its possibilities, followed by the typical 10 minute hands-on guide to set up and get to know tmux yourself. Tmux’s authors describe it as a terminal multiplexer. Behind this fancy term hides a simple concept: Within one terminal window you can open multiple windows and split-views (called “panes” in tmux lingo). Each pane will contain its own, independently running terminal instance. This allows you to have multiple terminal commands and applications running visually next to each other without the need to open multiple terminal emulator windows. On top of that tmux keeps these windows and panes in a session. tmux will keep this session alive until you kill the tmux server (e.g. This is incredibly useful because at any later point in time you can pick that session up exactly from where you left it by simply “attaching” to that session. If you’ve ever worked with remote servers or a Raspberry Pi over ssh you can guess where this will be useful: When you lose your ssh connection the tmux session will simply be detached but will keep running on the server in the background including all the processes that run within your session. To continue your session simply ssh to the server again and attach to the running session.īut tmux is not only helpful when working on a remote machine. Not only for its window management features but also for the session handling. Personally I find myself detaching from sessions when I’m switching context. I’ll just start a new session for my new task and attach to the old session whenever I want to continue with my old task. You see that tmux basically offers two big features: Window management in your terminal and session management. If you are familiar with GNU Screen this is nothing new. Let’s get our hands ready in the hands-on guide! Getting Started Think of tmux as an easier-to-use and a little more powerful alternative to Screen (obviously I’m being opinionated here).Įnough with the talking already. This hands-on guide will get you up and running with tmux pretty quickly. It will only cover the basic features which should be more than enough to get started and be productive with tmux. > Appearance -> Dimming:Ĭhecked Dimming affects only text, not background.Simply open your terminal and follow the instructions. The dimming style can be changed by setting iTerm2 -> Preferences. Inactive window styleīy default, iTerm2 will dimming the whole inactive windows, which looks ugly. Unchecked Show per-pane title bar with split panes. ![]() The title bar of panes can be hidden by setting iTerm2 -> Preferences. command + control + shift + d detach from tmux, run tmux -CC attach to attach and restore all windows.īy default, iTerm2 will show a title bar for each split panes, which looks ugly.command + shift + d Split the current pane into two, top and bottom. ![]() command + d Split the current pane into two, left and right. ![]() > General -> tmux:Ĭhoose a item in When attaching, restore windows as, then try tmux -CC to find your favorite way. How to open new windowĬhoose your favorite way to open new window by setting iTerm2 -> Preferences. > General -> tmux:Ĭhecked Automatically bury the tmux client session after connecting. This window can be hidden by setting iTerm2 -> Preferences.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |