Venture into tmux
I’ve recently gotten into tmux after experimenting with vim
as my main editor. I initially had a frustrating experience until I changed the keybindings and used it to have my editor, guard
, and rails server
running on a single screen.
Definition
tmux is defined as a Terminal multiplexer that allows you to switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal. And do a lot more.
Installation
On a Mac you can use Homebrew to install the latest version using the following command:
Next we want to verify that it was installed properly. We can start up tmux and name the session using the tmux new -s
command
Customize tmux.conf
I like to customize my tmux configuration to change some of the default tasks and add Powerline to the display bar.
Useful commands
| Action | Commands |
| :----------------------------------------- | :-------------------------------------------------- | --- |
| Zoom into a single pane | Prefix + Z
|
| Split the window into two vertical panes | tmux split-window
or Prefix + -
|
| Split the window into two horizontal panes | tmux split-window -h
or Prefix + |
|
| Create a new window | tmux new-window
or Prefix + c
|
| Select a window | tmux select-window -t :0-9
or Prefix + 0-9
|
| Rename the current window | tmux rename-window
or Prefix + ,
|
| Split the window into two vertical panes | Prefix + |
|
| Split the window into two horizontal panes | Prefix + -
|
Resources
No comments yet. Share on Mastodon and see your comment or write a post on your blog if you support Webmentions
No reposts yet. Share on Mastodon and see your repost or write a post on your blog if you support Webmentions
No likes yet. Share on Mastodon and see your like or write a post on your blog if you support Webmentions
No bookmarks yet. Share on Mastodon and see your bookmark or write a post on your blog if you support Webmentions
Powered by Webmentions