update
This commit is contained in:
66
.tmux.conf
66
.tmux.conf
@@ -45,10 +45,10 @@ if-shell '[[ $(echo "$(tmux -V | cut -d" " -f2) >= 2.1" | bc) -eq 1 ]]' \
|
||||
##########################################
|
||||
|
||||
# panes
|
||||
set -g pane-border-bg colour235
|
||||
set -g pane-border-fg colour238
|
||||
set -g pane-active-border-bg colour236
|
||||
set -g pane-active-border-fg colour51
|
||||
##mf##set -g pane-border-bg colour235
|
||||
##mf##set -g pane-border-fg colour238
|
||||
##mf##set -g pane-active-border-bg colour236
|
||||
##mf##set -g pane-active-border-fg colour51
|
||||
|
||||
# status line
|
||||
# UTF8 is autodetected in 2.2 onwards, but errors if explicitly set
|
||||
@@ -69,32 +69,32 @@ set -g status-right-length 60
|
||||
set -g status-right "#{prefix_highlight} #[fg=colour234,bg=colour66,bold] #[fg=colour233,bg=colour66,bold]#(tmux-mem-cpu-load -g 5 --interval 1)#[fg=colour66,bg=colour24,bold] #[fg=colour233,bg=colour24,bold]%H:%M:%S "
|
||||
|
||||
# messaging
|
||||
set -g message-attr bold
|
||||
set -g message-fg colour232
|
||||
set -g message-bg colour166
|
||||
set -g message-command-fg blue
|
||||
set -g message-command-bg black
|
||||
##mf##set -g message-attr bold
|
||||
##mf##set -g message-fg colour232
|
||||
##mf##set -g message-bg colour166
|
||||
##mf##set -g message-command-fg blue
|
||||
##mf##set -g message-command-bg black
|
||||
|
||||
#window mode
|
||||
setw -g clock-mode-colour colour135
|
||||
setw -g mode-attr bold
|
||||
setw -g mode-fg colour196
|
||||
setw -g mode-bg colour238
|
||||
##mf###window mode
|
||||
##mf##setw -g clock-mode-colour colour135
|
||||
##mf##setw -g mode-attr bold
|
||||
##mf##setw -g mode-fg colour196
|
||||
##mf##setw -g mode-bg colour238
|
||||
|
||||
# window status
|
||||
setw -g window-status-current-fg colour81
|
||||
setw -g window-status-current-bg colour238
|
||||
setw -g window-status-current-attr bold
|
||||
setw -g window-status-current-format '#[fg=colour234,bg=colour238,bold]#[fg=colour138,bg=colour238,bold] #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F#[fg=colour238,bg=colour234,bold]'
|
||||
##mf### window status
|
||||
##mf##setw -g window-status-current-fg colour81
|
||||
##mf##setw -g window-status-current-bg colour238
|
||||
##mf##setw -g window-status-current-attr bold
|
||||
##mf##setw -g window-status-current-format '#[fg=colour234,bg=colour238,bold]#[fg=colour138,bg=colour238,bold] #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F#[fg=colour238,bg=colour234,bold]'
|
||||
|
||||
setw -g window-status-fg colour138
|
||||
setw -g window-status-bg colour235
|
||||
setw -g window-status-attr none
|
||||
setw -g window-status-format '#[fg=colour234,bg=colour235,bold]#[fg=colour138,bg=colour235,bold] #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F#[fg=colour235,bg=colour234,bold]'
|
||||
##mf##setw -g window-status-fg colour138
|
||||
##mf##setw -g window-status-bg colour235
|
||||
##mf##setw -g window-status-attr none
|
||||
##mf##setw -g window-status-format '#[fg=colour234,bg=colour235,bold]#[fg=colour138,bg=colour235,bold] #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F#[fg=colour235,bg=colour234,bold]'
|
||||
|
||||
setw -g window-status-bell-attr bold
|
||||
setw -g window-status-bell-fg colour255
|
||||
setw -g window-status-bell-bg colour1
|
||||
##mf##setw -g window-status-bell-attr bold
|
||||
##mf##setw -g window-status-bell-fg colour255
|
||||
##mf##setw -g window-status-bell-bg colour1
|
||||
|
||||
setw -g window-status-separator ''
|
||||
|
||||
@@ -106,13 +106,13 @@ setw -g window-status-separator ''
|
||||
set-option -g status-keys vi
|
||||
set-option -g mode-keys vi
|
||||
|
||||
# Setup 'v' to begin selection as in Vim
|
||||
bind-key -t vi-copy v begin-selection
|
||||
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
|
||||
##mf### Setup 'v' to begin selection as in Vim
|
||||
##mf##bind-key vi-copy v begin-selection
|
||||
##mf##bind-key vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
|
||||
|
||||
# Update default binding of `Enter` to also use copy-pipe
|
||||
unbind -t vi-copy Enter
|
||||
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
|
||||
##mf##unbind -t vi-copy Enter
|
||||
##mf##bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
|
||||
|
||||
# split panes using | and -, open new pane in current directory
|
||||
bind | send-keys " ~/.tmux/newpanes -h" C-m
|
||||
@@ -149,7 +149,7 @@ bind-key C-a last-window
|
||||
bind R move-window -r\; display-message "Windows reordered..."
|
||||
|
||||
# special settings for MacOS
|
||||
if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf'
|
||||
##if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf'
|
||||
|
||||
##########################################
|
||||
### Plugins
|
||||
@@ -179,4 +179,4 @@ set -g @resurrect-strategy-vim 'session' # save vim sessions (may require t
|
||||
set -g @resurrect-strategy-nvim 'session' # save neovim sessions (may require the tpope/vim-obsession plugin)
|
||||
set -g @resurrect-capture-pane-contents 'on' # save pane contents
|
||||
set -g @continuum-restore 'on' # restore session on tmux start
|
||||
set -g @continuum-save-interval '5' # save session every 5 minutes (default is 15)
|
||||
set -g @continuum-save-interval '5' # save session every 5 minutes (default is 15)
|
||||
Reference in New Issue
Block a user