Update tmux.conf
This commit is contained in:
parent
ac4d17b1b0
commit
2f01d99252
16
tmux.conf
16
tmux.conf
@ -1,6 +1,7 @@
|
|||||||
# Plugind
|
# Plugind
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'thewtex/tmux-mem-cpu-load'
|
set -g @plugin 'thewtex/tmux-mem-cpu-load'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
|
|
||||||
# Install `tpm` if needed.
|
# Install `tpm` if needed.
|
||||||
if "test ! -d ~/.tmux/plugins/tpm" \
|
if "test ! -d ~/.tmux/plugins/tpm" \
|
||||||
@ -9,6 +10,14 @@ if "test ! -d ~/.tmux/plugins/tpm" \
|
|||||||
# Activate the plugins.
|
# Activate the plugins.
|
||||||
run -b "~/.tmux/plugins/tpm/tpm"
|
run -b "~/.tmux/plugins/tpm/tpm"
|
||||||
|
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
# Start windows and panes at 1, not 0
|
||||||
|
set -g base-index 1
|
||||||
|
set -g pane-base-index 1
|
||||||
|
set-window-option -g pane-base-index 1
|
||||||
|
set-option -g renumber-windows on
|
||||||
|
|
||||||
# VIM and FZF navigation bindings
|
# VIM and FZF navigation bindings
|
||||||
is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
||||||
is_fzf="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?fzf$'"
|
is_fzf="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?fzf$'"
|
||||||
@ -18,6 +27,10 @@ bind -n C-k run "($is_vim && tmux send-keys C-k) || ($is_fzf && tmux send-keys C
|
|||||||
bind -n C-l run "($is_vim && tmux send-keys C-l) || tmux select-pane -R"
|
bind -n C-l run "($is_vim && tmux send-keys C-l) || tmux select-pane -R"
|
||||||
bind -n 'C-\' if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
|
bind -n 'C-\' if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
|
||||||
|
|
||||||
|
# Split pane bindings
|
||||||
|
bind '"' split-window -v -c "#{pane_current_path}"
|
||||||
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
|
|
||||||
set-option -g status-position bottom
|
set-option -g status-position bottom
|
||||||
set-option -g default-terminal "screen-256color"
|
set-option -g default-terminal "screen-256color"
|
||||||
set-option -sa terminal-features ',xterm-256color:RGB'
|
set-option -sa terminal-features ',xterm-256color:RGB'
|
||||||
@ -43,5 +56,4 @@ set -g window-active-style 'bg=default,fg=white'
|
|||||||
set -g pane-border-style 'bg=default,fg=#0c0c0c'
|
set -g pane-border-style 'bg=default,fg=#0c0c0c'
|
||||||
set -g pane-active-border-style 'bg=default,fg=#afd787'
|
set -g pane-active-border-style 'bg=default,fg=#afd787'
|
||||||
|
|
||||||
set -g mouse on
|
|
||||||
set -g mouse-select-pane on
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user