Recently I started using tmux and powerline again. I needed a way to split terminal windows into panes and monitor cpu, memory and network at the same time. Here I show how to install it.
As a terminal on os x I am using iTerm2 (just unzip and move to the Applications). To install tmux you can use brew. I also highly recommend to use oh-my-zsh shell. Those tools are out of scope for this post, so I focus on tmux and powerline only.
Run following command to install powerline, powerline plugin for memory and python library for retrieving information on system utilization:
Powerline uses several special characters. This requires having a patched font installed in the system. Install the fonts and configure iTerm to use them using:
Go to iTerm2 > Preferences > Profiles > Defautl -> Text and then set
Regular Font = 12pt Meslo LG S Regular for Powerline
Non-ASCII Font = 12pt Meslo LG S Regular for Powerline
Next, add those exports to ~/.zshrc
Now you are ready to configure the status line. The root config directory for powerline is:
Replace themes/tmux/default.json with:
And add this to colorschemes/default.json.
After all run
To install tmux run
Then create ~/.tmux.conf and set the proper path to powerline.
Now you are ready to use tmux with powerline!
In tmux use following commands to manage panes:
For more tmux shortcuts and powerline configuration see links below.