brew install tmux
# Confirm installation
tmux -V
> tmux 2.6 # or higher
Most configuration is in ~/.tmux.conf
.
TODO
TODO
# Enables mouse | |
set -g mouse | |
set-window-option -g mode-keys vi | |
# CPU Status | |
set -g status-interval 1 # second | |
set -g status-right "#{prefix_highlight} CPU: #{cpu_icon} #{cpu_percentage} | %a %h-%d %H:%M " | |
# Sync Panes Status | |
bind a set-window-option synchronize-pane | |
set -g status-left '#{?pane_synchronized, #[bg=blue] SYNC #[default],}' | |
# Plugins | |
# Install with `prefix I` in tmux | |
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' | |
set -g @plugin 'tmux-plugins/tmux-cpu' | |
set -g @plugin 'tmux-plugins/tmux-pain-control' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
# TPM | |
set -g @plugin 'tmux-plugins/tpm' | |
# This block will automatically install tpm if it isn't already when this file is loaded. | |
if "test ! -d ~/.tmux/plugins/tpm" \ | |
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'" | |
run '~/.tmux/plugins/tpm/tpm' |