commit ca0817d61b266df76b6d7d39090448aa059cd7e0
parent 65699d8a23dc382a9616f70ffa0627b1c4ab3c3b
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Mon, 3 Jan 2022 16:53:27 +0100
Update Tmux config
Diffstat:
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
@@ -2,11 +2,13 @@
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ',*:Tc' # this is for 256 color
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' # this is for the cursor shape in neovim
+set -s escape-time 0 # stop delay before passing escape keypress to vim
+set-option -g prefix C-a
bind r source-file ~/.config/tmux/tmux.conf \; display "Config reloaded"
bind , command-prompt "rename-window '%%'" # when renaming windows, don't suggest previous name
-bind-key m last-window
+bind-key a last-window
# index panes and windows starting at 1
set -g base-index 1
@@ -20,12 +22,13 @@ bind l select-pane -R
# vim keybindings for copy mode
bind P paste-buffer
+bind-key C-a copy-mode
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -selection clipboard"
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
+set -g status-right "" # get rid of right part of status bar
set -g status-style "fg=green,bg=default" # more discreet status bar
set -g message-style "fg=black,bg=green"
-set -g status-right "" # get rid of right part of status bar
-
-set -s escape-time 0 # stop delay before passing escape keypress to vim
+set -g window-status-current-style "fg=black,bg=green"
+set -g window-status-last-style "underscore,italics"