Skip to content

Instantly share code, notes, and snippets.

@petitJAM
Created March 19, 2018 18:06
Show Gist options
  • Save petitJAM/919df53aeb51b25a2f1efe68c46b3cfe to your computer and use it in GitHub Desktop.
Save petitJAM/919df53aeb51b25a2f1efe68c46b3cfe to your computer and use it in GitHub Desktop.
tmux on Mac
# 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'

Install

brew install tmux

# Confirm installation
tmux -V
> tmux 2.6 # or higher

Configure

Most configuration is in ~/.tmux.conf.

Using it

TODO

Tmuxinator

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment