Browse Source

Adding TPM and nord theme

pull/2/head
Ryan Reed 3 years ago
parent
commit
cf10ef9858
2 changed files with 35 additions and 23 deletions
  1. +14
    -13
      dot_tmux.conf
  2. +21
    -10
      dot_tmux/README.md

+ 14
- 13
dot_tmux.conf View File

@ -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'

+ 21
- 10
dot_tmux/README.md View File

@ -5,6 +5,7 @@
<!-- vim-markdown-toc GFM -->
* [Shortcuts](#shortcuts)
* [Plugins](#plugins)
* [Notes](#notes)
* [Copying and save buffer](#copying-and-save-buffer)
@ -15,16 +16,26 @@
**Leader Combo:** `ctrl + a`
| Shortcut | Description |
| -------------- | ----------------------------------------- |
| `<leader>| ` | Split Vertically |
| `<leader>-` | Split Horizontally |
| `<leader>m` | Toggle mouse mode |
| `<leader>P` | Save current window to file (32000 lines) |
| `<leader>H` | Toggle logging of session |
| `<leader>r` | Reload tmux configuration |
| `<leader>T` | Make current window first window |
| `<leader>PgUp` | Enter copy mode |
| Shortcut | Description |
| ------------------ | ------------------------------------------- |
| `<leader>| ` | Split Vertically |
| `<leader>-` | Split Horizontally |
| `<leader>m` | Toggle mouse mode |
| `<leader>P` | Save current window to file (32000 lines) |
| `<leader>H` | Toggle logging of session |
| `<leader>r` | Reload tmux configuration |
| `<leader>T` | Make current window first window |
| `<leader>PgUp` | Enter copy mode |
| `<leader>I` | TPM: Fetch and install plugins, reload tmux |
| `<leader>U` | TPM: Update plugin(s) |
| `<leader><alt><u>` | 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


Loading…
Cancel
Save