diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2020-12-23 18:06:15 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-12-23 18:06:15 +0100 |
commit | 886fbf1e8e2892ea7483c7cddfaf54801ba003be (patch) | |
tree | b30613d02ceff762e39762a919ef0ab8664847e3 | |
parent | 797168b546da5fd7ddb68b4f0bdcc833e7b2060c (diff) | |
download | dotfiles-886fbf1e8e2892ea7483c7cddfaf54801ba003be.tar.gz dotfiles-886fbf1e8e2892ea7483c7cddfaf54801ba003be.tar.xz dotfiles-886fbf1e8e2892ea7483c7cddfaf54801ba003be.zip |
tmux: Add useful settings for tmux
-rw-r--r-- | tmux/.tmux.conf | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 5ec0d8c..5a62253 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -52,9 +52,21 @@ bind R new-window -n 'root' 'sudo -i' set-option -ga terminal-overrides ',*:Tc' set -g default-terminal "screen-256color" +# address vim mode switching delay (http://superuser.com/a/252717/65504) +set -s escape-time 0 + # get bigger history set-option -g history-limit 100000 +# tmux messages are displayed for 4 seconds +set -g display-time 4000 + +# refresh 'status-left' and 'status-right' more often +set -g status-interval 5 + +# focus events enabled for terminals that support them +set -g focus-events on + # highlight window when it has new activity setw -g monitor-activity on set -g visual-activity off @@ -69,9 +81,17 @@ if-shell 'test ! -r ~/.ssh/tmate_rsa' 'run -b "/usr/bin/ssh-keygen -b 4096 -t rs if-shell 'test "${TMUX#*tmate}" != "$TMUX"' 'set -g tmate-identity tmate_rsa' # List of plugins +# https://github.com/tmux-plugins/tpm set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-sensible' -set -g @plugin 'tmux-plugins/tmux-resurrect' + +# https://github.com/tmux-plugins/tmux-yank +set -g @plugin 'tmux-plugins/tmux-yank' + +# https://github.com/tmux-plugins/tmux-logging +set -g @plugin 'tmux-plugins/tmux-logging' + +# https://github.com/tmux-plugins/tmux-prefix-highlight +set -g @plugin 'tmux-plugins/tmux-tmux-prefix-highlight' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' |