41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
bind-key Escape copy-mode
|
|
set -g status-bg blue
|
|
set -g status-fg white
|
|
set -g status-interval 60
|
|
set -g status-left-length 0
|
|
set -g status-left ''
|
|
set-window-option -g window-status-current-bg red
|
|
set -g status-right '#[default]#[fg=green]#H #[fg=white]%m/%d %I:%M%p #[default]'
|
|
|
|
set-option -g default-command /bin/zsh
|
|
set-option -g default-shell /bin/zsh
|
|
set-window-option -g mouse on
|
|
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
|
|
|
bind m \
|
|
set -g mouse on \;\
|
|
display 'Mouse: ON'
|
|
|
|
bind M \
|
|
set -g mouse off \;\
|
|
display 'Mouse: OFF'
|
|
|
|
# Copy-paste integration
|
|
set-option -g default-command "reattach-to-user-namespace -l zsh"
|
|
|
|
# Use vim keybindings in copy mode
|
|
setw -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"
|
|
|
|
# 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"
|
|
|
|
# Bind ']' to use pbpaste
|
|
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"
|
|
|
|
set -g status-right '#(rainbarf --battery --remaining --no-bright)'
|