-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TPM to manage plugins, add plugins for defaults and navigation
- Add Tmux Plugin Manager - Add plugin for sane defaults - Add plugin for pane navigation - Replace `set-option` with `set` shorthand
- Loading branch information
Showing
1 changed file
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
# 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'" | ||
|
||
run '~/.tmux/plugins/tpm/tpm' | ||
|