

One of tmux’s strengths is window management for context switching. Once the status line goes from green to yellow, we can resize:Ĭ-b Up Select the pane above the active paneĬ-b Down Select the pane below the active paneĬ-b Left Select the pane to the left of the active paneĬ-b Right Select the pane to the right of the active paneĬ-b o Select the next pane (cycle through them all )Ĭ-b Select the 'last' (previously used ) pane Window Management To do this, we need to use the tmux command pane, which we can access with C-b. If all/nothing is not the desired approach, we can also resize the pane using the resize-pane command. Both zooms use the same key and the direction depends on the current state (i.e., if you’re currently zoomed in, zooming will zoom out and vice versa). Zooming out will collapse it back to the size it was before. Zooming in to a pane that’s in focus will expand it to fill the entire terminal window. We can also resize panes in two ways - zooming in/out and resizing up/down, left/right. To close a window pane, you can type exit or use C-d To navigate the panes, use `C-b + Arrow Keys”.Some basic pane management within a tmux window is achieved with the use of hot keys: The default prefix key is C-b which means ctrl-b.Ī list of all tmux shortcuts can be seen with C-b ? Pane management with tmux To start tmux, enter tmux into the terminal. Pre-requisites: before using tmux, it needs to be installed. What else? Well, it’s a tool that seemingly everyone I know who’s proficient with the command line swears by and that’s a big reason why it’s been at the top of my list of tools to learn for a while! Let’s dig in, shall we? Getting Started What that means to me: window/session management that can persist even after you close it to do something else! It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal. The tmux project describes tmux in the following way:

#Tmux kill session how to#
This post is mostly a list of reminders for how to use tmux to effectively manage terminal windows. Well, looks like I’m getting to tmux first. Right next to making a concerted effort to learn vim. Learning tmux has been on my list of projects for months.
