fleshed out tmux
This commit is contained in:
parent
322e2f81ae
commit
bc7a222dec
8 changed files with 11 additions and 21 deletions
17
tmux.conf
17
tmux.conf
|
@ -56,9 +56,6 @@ set -g @plugin 'tmux-plugins/tpm'
|
||||||
|
|
||||||
# Tmux OneDark: http://github.com/odedlaz/tmux-onedark-themetheme
|
# Tmux OneDark: http://github.com/odedlaz/tmux-onedark-themetheme
|
||||||
#set -g @plugin 'odedlaz/tmux-onedark-theme'
|
#set -g @plugin 'odedlaz/tmux-onedark-theme'
|
||||||
# Tmux-Themepack (feat Powerline)
|
|
||||||
set -g @plugin 'jimeh/tmux-themepack'
|
|
||||||
set -g @themepack 'powerline/default/blues'
|
|
||||||
|
|
||||||
# Make tmux display true colors
|
# Make tmux display true colors
|
||||||
#set -g default-terminal "screen-256color"
|
#set -g default-terminal "screen-256color"
|
||||||
|
@ -74,7 +71,7 @@ set -g default-terminal "xterm-256color"
|
||||||
|
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
# Home/End keys handled in [n]vim maybe?
|
# Home/End keys handled in [n]vim
|
||||||
bind-key -n Home send Escape "OH"
|
bind-key -n Home send Escape "OH"
|
||||||
bind-key -n End send Escape "OF"
|
bind-key -n End send Escape "OF"
|
||||||
|
|
||||||
|
@ -97,12 +94,12 @@ set -g escape-time 0
|
||||||
|
|
||||||
# Smart pane switching with awareness of Vim splits.
|
# Smart pane switching with awareness of Vim splits.
|
||||||
# See: https://github.com/christoomey/vim-tmux-navigator
|
# See: https://github.com/christoomey/vim-tmux-navigator
|
||||||
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
#is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
||||||
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|l?n?vim?x?|fzf)(diff)?$'"
|
# | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|l?n?vim?x?|fzf)(diff)?$'"
|
||||||
bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
|
#bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
|
||||||
bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
|
#bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
|
||||||
bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
|
#bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
|
||||||
bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
|
#bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
|
||||||
|
|
||||||
#tmux_version='$(tmux -V | sed -En "s/^tmux ([1-9]+(.[0-9]+)?).*/\1/p")'
|
#tmux_version='$(tmux -V | sed -En "s/^tmux ([1-9]+(.[0-9]+)?).*/\1/p")'
|
||||||
#if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
|
#if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 4e2279688d8a577ed14f42c4e8af1acb58100a57
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit d62b6865c0e7c956ad1f0396823a6f34cf7452a7
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit e35740e7a70a84af4fc0bdc40890a8b0de49b7ab
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 763d0a852e6703ce0f5090a508330012a7e6788e
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit c3ffe89e525a4692d9fa53235bbce1280d1d8311
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 126150da5e89b262fec94dd7b3d8bcd0966646a9
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 30bfd780061f1752d1133016f217a13add4d4e86
|
|
Loading…
Reference in a new issue