diff --git a/dot_tmux.conf b/dot_tmux.conf index 149f06e..d61d9bf 100644 --- a/dot_tmux.conf +++ b/dot_tmux.conf @@ -76,21 +76,22 @@ bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'ca bind-key H pipe-pane -o "exec cat >>$HOME/'tmux-#W.log'" \; display-message 'Toggled logging to $HOME/tmux-#W.log' - -# =================================== -# === Appearence and status bar === -# =================================== -# Load the tmux theme, based on the environment variable TMUX_THEME -# If TMUX_THEME is not set or empty, use ~/.tmux/themes/material.tmux -# Taken from https://github.com/PeterMosmans/dotfiles -run-shell "tmux source-file ~/.tmux/themes/\${TMUX_THEME:-widecentered}.tmux" +# ============================= +# === Load Custom Configs === +# ============================= +# Load local config, if it exists +if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local' set -g status-position top +# ================ +# === Plugins === +# ================ +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' -# =============== -# === Final === -# =============== -# Load local config, if it exists -if-shell "[ -f ~/.tmux.conf.local ]" 'source ~/.tmux.conf.local' +set -g @plugin "arcticicestudio/nord-tmux" + +# Must be final line of tmux config +run '~/.tmux/plugins/tpm/tpm' diff --git a/dot_tmux/README.md b/dot_tmux/README.md index bdf0dfd..ff22d1d 100644 --- a/dot_tmux/README.md +++ b/dot_tmux/README.md @@ -5,6 +5,7 @@ * [Shortcuts](#shortcuts) +* [Plugins](#plugins) * [Notes](#notes) * [Copying and save buffer](#copying-and-save-buffer) @@ -15,16 +16,26 @@ **Leader Combo:** `ctrl + a` -| Shortcut | Description | -| -------------- | ----------------------------------------- | -| `| ` | Split Vertically | -| `-` | Split Horizontally | -| `m` | Toggle mouse mode | -| `P` | Save current window to file (32000 lines) | -| `H` | Toggle logging of session | -| `r` | Reload tmux configuration | -| `T` | Make current window first window | -| `PgUp` | Enter copy mode | +| Shortcut | Description | +| ------------------ | ------------------------------------------- | +| `| ` | Split Vertically | +| `-` | Split Horizontally | +| `m` | Toggle mouse mode | +| `P` | Save current window to file (32000 lines) | +| `H` | Toggle logging of session | +| `r` | Reload tmux configuration | +| `T` | Make current window first window | +| `PgUp` | Enter copy mode | +| `I` | TPM: Fetch and install plugins, reload tmux | +| `U` | TPM: Update plugin(s) | +| `` | TPM: Remove plugins not in tmux.conf | + + +## Plugins + +* [TPM](https://github.com/tmux-plugins/tpm) Plugin Manager +* [Nord Theme](https://github.com/arcticicestudio/nord-tmux) + ## Notes