Update tmux config to include session name in the status bar
This commit is contained in:
parent
2baef2c38d
commit
3cdc2971e9
1 changed files with 2 additions and 19 deletions
21
.tmux.conf
21
.tmux.conf
|
@ -1,6 +1,3 @@
|
||||||
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
|
||||||
#set -g @plugin 'tmux-plugins/tpm'
|
|
||||||
|
|
||||||
# Custom Prefix
|
# Custom Prefix
|
||||||
set -g prefix C-space
|
set -g prefix C-space
|
||||||
bind-key C-space send-prefix
|
bind-key C-space send-prefix
|
||||||
|
@ -16,23 +13,10 @@ bind M-r respawn-pane -k
|
||||||
|
|
||||||
# Mouse Scrolling
|
# Mouse Scrolling
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
#set -g @plugin 'nhdaly/tmux-better-mouse-mode'
|
|
||||||
#set -g @scroll-without-changing-pane "on"
|
|
||||||
#set -g @emulate-scroll-for-no-mouse-alternate-buffer "on"
|
|
||||||
|
|
||||||
#unbind -T copy-mode MouseDragEnd1Pane
|
|
||||||
#bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection primary -filter | xclip -selection clipboard"
|
|
||||||
|
|
||||||
# Mouse Copy
|
# Mouse Copy
|
||||||
#set -g @plugin 'tmux-plugins/tmux-yank'
|
|
||||||
#set -g @yank_action 'copy-pipe-no-clear'
|
|
||||||
#set -g @yank_selection_mouse 'copy-pipe-no-clear'
|
|
||||||
#bind -T copy-mode C-C send -X copy-pipe-no-clear "xsel -i --clipboard"\; display "Copied"
|
|
||||||
#bind -T copy-mode-vi C-C send -X copy-pipe-no-clear "xsel -i --clipboard"\; display "Copied"
|
|
||||||
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip"\; display "Copied"
|
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip"\; display "Copied"
|
||||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip"\; display "Copied"
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip"\; display "Copied"
|
||||||
#set -g @yank_with_mouse off
|
|
||||||
#set -g @yank_line 'C-C'
|
|
||||||
|
|
||||||
# Split
|
# Split
|
||||||
bind S-down split-window -v
|
bind S-down split-window -v
|
||||||
|
@ -60,8 +44,8 @@ set -g status-style bg='#222222',fg='#AD7FA8'
|
||||||
|
|
||||||
# Status
|
# Status
|
||||||
set -g status-left '#{?client_prefix,#[fg=#008b8b]█, }'
|
set -g status-left '#{?client_prefix,#[fg=#008b8b]█, }'
|
||||||
set -g status-right '#[fg=#ad7fa8]#(hostname -I | cut -d" " -f1) %Y-%m-%d %H:%M'
|
set -g status-right '#[fg=#ad7fa8]| #S | #(hostname -I | cut -d" " -f1) | %Y-%m-%d %H:%M '
|
||||||
#hostname -I | cut -d' ' -f1
|
set -g status-right-length 50
|
||||||
set -g status-interval 1
|
set -g status-interval 1
|
||||||
set-window-option -g window-status-style fg='#008b8b',bg=default
|
set-window-option -g window-status-style fg='#008b8b',bg=default
|
||||||
set-window-option -g window-status-current-style fg='#222222',bg='#ad7fa8'
|
set-window-option -g window-status-current-style fg='#222222',bg='#ad7fa8'
|
||||||
|
@ -84,6 +68,5 @@ set -g @vim_navigator_mapping_right "C-Right C-l"
|
||||||
set -g @vim_navigator_mapping_up "C-Up C-k"
|
set -g @vim_navigator_mapping_up "C-Up C-k"
|
||||||
set -g @vim_navigator_mapping_down "C-Down C-j"
|
set -g @vim_navigator_mapping_down "C-Down C-j"
|
||||||
|
|
||||||
|
|
||||||
# Load Plugins
|
# Load Plugins
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|
Loading…
Reference in a new issue