diff options
| author | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-02-23 14:52:47 +0100 |
|---|---|---|
| committer | Charles Cabergs <charles.cabergs@colruytgroup.com> | 2022-02-23 14:52:47 +0100 |
| commit | ca5e88f2e8bf0a8fb40724a19f9b9e66de9ad52d (patch) | |
| tree | 9da5e2a70fb2b77fc8414308003b74650bff82fb | |
| parent | 296c1d8822741673c425500ad218b8cde6736a02 (diff) | |
| download | dotfiles-ca5e88f2e8bf0a8fb40724a19f9b9e66de9ad52d.tar.gz dotfiles-ca5e88f2e8bf0a8fb40724a19f9b9e66de9ad52d.tar.bz2 dotfiles-ca5e88f2e8bf0a8fb40724a19f9b9e66de9ad52d.zip | |
Updated tmux config
| -rw-r--r-- | config/tmux/tmux.conf | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 530f1ef..abcea6d 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -3,29 +3,48 @@ set -g prefix C-a bind C-a send-prefix # set -g default-terminal "xterm-256color" -set-option -g default-terminal "screen-256color" -set-option -sa terminal-overrides ',xterm-256color:RGB' -set-option -g focus-events on +# NOTE: recommended by neovim but disliked by ssh +set -g default-terminal "screen-256color" +set -sa terminal-overrides ',xterm-256color:RGB' + +set -g focus-events on +set -g history-limit 5000 +set -s history-file '~/.local/share/tmux/history' + set -g mouse on setw -g mode-keys vi set -sg escape-time 0 # otherwise <ESC> in vim has a small delay -set-option -g history-limit 5000 +set -sg bell-action none +set -sg status-keys vi bind '"' split-window -c "#{pane_current_path}" bind '%' split-window -c "#{pane_current_path}" -h bind 'c' new-window -c "#{pane_current_path}" -set -g @plugin 'tmux-plugins/tpm' +bind R source-file ~/.config/tmux/tmux.conf + + +set -g status-right-length 100 +# set -g @plugin '~/git/tmux-ssh-mode' + +set -g @plugin 'tmux-plugins/tpm' # set -g @plugin 'egel/tmux-gruvbox' # set -g @tmux-gruvbox 'dark' - set -g @plugin 'arcticicestudio/nord-tmux' set -g @plugin 'tmux-plugins/tmux-prefix-highlight' set -g @plugin 'wfxr/tmux-fzf-url' +# show copy/sync mode with tmux-prefix-highlight +set -g @prefix_highlight_show_copy_mode 'on' +set -g @prefix_highlight_copy_mode_attr 'fg=black,bg=yellow,bold' # default is 'fg=default,bg=yellow' +set -g @prefix_highlight_show_sync_mode 'on' +set -g @prefix_highlight_sync_mode_attr 'fg=black,bg=green' # default is 'fg=default,bg=yellow' + +set -g status-right "#{prefix_highlight}#{tmux-ssh-mode}#[fg=brightblack,bg=black,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack] %Y-%m-%d #[fg=white,bg=brightblack,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack] %H:%M #[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore]#[fg=black,bg=cyan,bold] #H " + # set -g @plugin 'tomhey/tmux-remote-sessions' run "$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm" |
