Skip to content

Commit

Permalink
Add TPM to manage plugins, add plugins for defaults and navigation
Browse files Browse the repository at this point in the history
- Add Tmux Plugin Manager
- Add plugin for sane defaults
- Add plugin for pane navigation
- Replace `set-option` with `set` shorthand
  • Loading branch information
nevalsar committed Jun 22, 2022
1 parent c85e9bf commit f54e5ad
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions tmux/.tmux.conf
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
# Remap prefix from C-b to C-\
# Remap prefix from C-b to `
unbind-key C-b
set-option -g prefix 'C-\'
bind-key 'C-\' send-prefix
set -g prefix '`'
bind-key '`' send-prefix

# Easy reload config file
bind R source-file ~/.tmux.conf \; display-message "Reloaded!"

# 256-color terminal
set-option -g default-terminal "tmux-256color"
set -g default-terminal "tmux-256color"

# Add truecolor support (tmux info | grep Tc)
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -ga terminal-overrides ",tmux-256color:Tc"

# Enable mouse-control
set -g mouse on

# Configure status bar
#
set-option -g status-style fg=black,bg=white
set-option -g status-position bottom
set -g status-style fg=black,bg=white

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-pain-control'

if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"

0 comments on commit f54e5ad

Please sign in to comment.