mirror of https://github.com/nirenjan/dotfiles.git
Add status bar configuration to tmux.conf
Also rearrange sections so they are more relevant to surrounding sectionsvimbundler
parent
d08390d4be
commit
78ec4eaf5c
59
tmux.conf
59
tmux.conf
|
@ -1,6 +1,6 @@
|
||||||
# Switch prefix to use C-a instead of C-b
|
# Switch prefix to use C-a instead of C-b
|
||||||
unbind-key C-b
|
unbind-key C-b
|
||||||
set -g prefix C-a
|
set-option -g prefix C-a
|
||||||
bind-key a send-prefix
|
bind-key a send-prefix
|
||||||
|
|
||||||
# Use 256 color mode
|
# Use 256 color mode
|
||||||
|
@ -12,10 +12,11 @@ set-option -sg escape-time 50
|
||||||
|
|
||||||
# Enable mouse mode
|
# Enable mouse mode
|
||||||
set-option -g mode-mouse on
|
set-option -g mode-mouse on
|
||||||
#set-option -g mouse-resize-pane on
|
|
||||||
set-option -g mouse-select-pane on
|
set-option -g mouse-select-pane on
|
||||||
set-option -g mouse-select-window on
|
set-option -g mouse-select-window on
|
||||||
set-option -g mouse-utf8 on
|
set-option -g mouse-utf8 on
|
||||||
|
# I find your lack of mouse-resize-pane off disturbing
|
||||||
|
set-option -g mouse-resize-pane off
|
||||||
|
|
||||||
# Scrollback buffer
|
# Scrollback buffer
|
||||||
set-option -g history-limit 100000
|
set-option -g history-limit 100000
|
||||||
|
@ -39,27 +40,55 @@ set-option -g status-interval 2
|
||||||
set-option -g status-bg colour8
|
set-option -g status-bg colour8
|
||||||
set-option -g status-fg colour7
|
set-option -g status-fg colour7
|
||||||
|
|
||||||
|
# Status bar - left
|
||||||
|
# <username>@<host> <session name>
|
||||||
|
set-option -g status-left "#[fg=blue]#(whoami)@#h "
|
||||||
|
set-option -ga status-left "#[default][#S]"
|
||||||
|
# Status bar - left length
|
||||||
|
set-option -g status-left-length 40
|
||||||
|
|
||||||
# Status bar - right
|
# Status bar - right
|
||||||
# <username> <host> <date/time> <stardate>
|
# <date/time> <stardate>
|
||||||
set-option -g status-right "#[fg=magenta]#F #I:#P "
|
set-option -g status-right "#[fg=yellow]%a %F %R "
|
||||||
set-option -ga status-right "#[fg=blue]#(whoami) "
|
|
||||||
set-option -ga status-right "#[fg=green]#h "
|
|
||||||
set-option -ga status-right "#[fg=yellow]%a %F %R "
|
|
||||||
set-option -ga status-right "#[fg=red]#(~/bin/stardate)"
|
set-option -ga status-right "#[fg=red]#(~/bin/stardate)"
|
||||||
# Status bar - right length
|
# Status bar - right length
|
||||||
set-option -g status-right-length 60
|
set-option -g status-right-length 30
|
||||||
|
|
||||||
|
# Status bar - window status
|
||||||
set-window-option -g window-status-current-bg red
|
set-window-option -g window-status-current-bg red
|
||||||
|
set-window-option -g window-status-format "#I-#P:#W#F"
|
||||||
|
set-window-option -g window-status-current-format "#I-#P:#W#F"
|
||||||
|
|
||||||
# Pane highlighting
|
# Pane highlighting
|
||||||
set-option -g pane-active-border-fg green
|
set-option -g pane-active-border-fg green
|
||||||
|
|
||||||
|
# Window switching
|
||||||
|
bind-key C-a last-window
|
||||||
|
unbind-key l # existing default binding
|
||||||
|
|
||||||
|
# Window splitting
|
||||||
|
# Just because I like the Vim key-bindings to split the window
|
||||||
|
bind-key s split-window
|
||||||
|
bind-key v split-window -h
|
||||||
|
# Delete the existing default bindings
|
||||||
|
unbind-key %
|
||||||
|
unbind-key '"'
|
||||||
|
|
||||||
|
# Use vi style key bindings
|
||||||
|
set-option -g mode-keys vi
|
||||||
|
set-option -g status-keys vi
|
||||||
|
|
||||||
|
# Pane logging, a-la screen's C-a H
|
||||||
|
bind-key H \
|
||||||
|
pipe-pane -o 'cat >> ~/tmux_logs/tmux_log.#I-#P' \;\
|
||||||
|
display-message 'Toggled logging to ~/tmux_logs/tmux_log.#I-#P'
|
||||||
|
|
||||||
# Terminator style pane switching
|
# Terminator style pane switching
|
||||||
# OSX Terminal.app, enable Use option as meta key
|
# OSX Terminal.app, enable Use option as meta key
|
||||||
# and delete the key bindings for Option Cursor left & Option Cursor right
|
# and delete the key bindings for Option Cursor left & Option Cursor right
|
||||||
#
|
#
|
||||||
# nirenjan: I don't use these because I find using the Option left & right to
|
# nirenjan: I don't use these because I find using the Option left & right to
|
||||||
# move between words more useful than shorter keys to select panes
|
# move between words more useful than shorter key presses to select panes
|
||||||
# bind-key -n M-Left select-pane -L
|
# bind-key -n M-Left select-pane -L
|
||||||
# bind-key -n M-Right select-pane -R
|
# bind-key -n M-Right select-pane -R
|
||||||
# bind-key -n M-Up select-pane -U
|
# bind-key -n M-Up select-pane -U
|
||||||
|
@ -80,18 +109,6 @@ set-option -g pane-active-border-fg green
|
||||||
# bind-key -n M-8 select-window -t :8
|
# bind-key -n M-8 select-window -t :8
|
||||||
# bind-key -n M-9 select-window -t :9
|
# bind-key -n M-9 select-window -t :9
|
||||||
|
|
||||||
# Window switching
|
|
||||||
bind-key C-a last-window
|
|
||||||
|
|
||||||
# Use vi style key bindings
|
|
||||||
set-option -g mode-keys vi
|
|
||||||
set-option -g status-keys vi
|
|
||||||
|
|
||||||
# Pane logging, a-la screen's C-a H
|
|
||||||
bind-key H \
|
|
||||||
pipe-pane -o 'cat >> ~/tmux_logs/tmux_log.#I-#P' \;\
|
|
||||||
display-message 'Toggled logging to ~/tmux_logs/tmux_log.#I-#P'
|
|
||||||
|
|
||||||
|
|
||||||
# Defaults
|
# Defaults
|
||||||
# bind-key C-b send-prefix
|
# bind-key C-b send-prefix
|
||||||
|
|
Loading…
Reference in New Issue