Add tmux-logging.

This commit is contained in:
David Tomaschik
2019-04-24 21:49:28 -07:00
parent 53fa86ba4a
commit 33d9e53327
3 changed files with 12 additions and 0 deletions

4
.gitmodules vendored
View File

@@ -26,3 +26,7 @@
path = dotfiles/zprezto path = dotfiles/zprezto
url = https://github.com/sorin-ionescu/prezto.git url = https://github.com/sorin-ionescu/prezto.git
fetchRecurseSubmodules = true fetchRecurseSubmodules = true
[submodule "dotfiles/tmux/tmux-logging"]
path = dotfiles/tmux/tmux-logging
url = https://github.com/tmux-plugins/tmux-logging.git
fetchRecurseSubmodules = true

View File

@@ -18,6 +18,10 @@ set -g pane-base-index 1
set -g set-titles on set -g set-titles on
set -g set-titles-string '#h:#S:#I.#P #W' set -g set-titles-string '#h:#S:#I.#P #W'
# Set keybindings
set -g mode-keys vi
set -g status-keys vi
# Set a 256color $TERM variable so programs inside tmux know they can use 256 # Set a 256color $TERM variable so programs inside tmux know they can use 256
# colors # colors
set -g default-terminal screen-256color set -g default-terminal screen-256color
@@ -61,3 +65,6 @@ bind M \
# tmux X clipboard integration # tmux X clipboard integration
bind C-c run "tmux show-buffer | xsel -i -b" bind C-c run "tmux show-buffer | xsel -i -b"
bind C-v run "tmux set-buffer -- \"$(xsel -o -b)\"; tmux paste-buffer" bind C-v run "tmux set-buffer -- \"$(xsel -o -b)\"; tmux paste-buffer"
# Enable logging module, if available
run-shell "~/.tmux/tmux-logging/logging.tmux || true"