dotfiles/tmux.conf

64 lines
1.6 KiB
Text
Raw Normal View History

2013-01-07 09:51:06 -08:00
# tmux config
# Eryn Wells <eryn@erynwells.me>
2013-01-07 09:51:06 -08:00
set -g prefix C-f
2013-01-03 10:01:36 -08:00
2013-01-07 09:51:06 -08:00
# Don't destroy sessions that have no clients attached.
set -g exit-unattached off
2013-01-03 10:01:36 -08:00
set -g default-terminal "screen-256color"
set -g history-limit 10000
# Bells from everywhere
2013-01-07 09:51:06 -08:00
set -g bell-action any
set -g visual-bell off
2013-01-03 10:01:36 -08:00
# Pass xterm titles through
set -g set-titles on
set -g set-titles-string "#T"
2013-01-07 09:51:06 -08:00
# Use vi keys for copy mode
set -g mode-keys vi
set -g repeat-time 0
# No left status; right status bar is session name
set -g status-bg black
2013-01-07 09:51:06 -08:00
set -g status-left ""
set -g status-left-bg black
set -g status-left-fg brightblue
2013-01-07 09:51:06 -08:00
set -g status-left-attr none
2013-01-07 09:51:06 -08:00
set -g status-right "| #S "
set -g status-right-bg black
set -g status-right-fg brightblue
2013-01-07 09:51:06 -08:00
set -g status-right-attr none
2012-03-14 13:59:10 -07:00
2013-01-03 10:01:36 -08:00
# Start window and pane indexing from 1 instead of 0
2012-03-14 13:59:10 -07:00
set-option -g base-index 1
set-option -g pane-base-index 1
2012-03-14 13:59:10 -07:00
# Tabs like this: "(<index>:<window_name>)"
2018-04-08 07:32:51 -07:00
setw -g window-status-style "fg=brightgreen,bg=black"
setw -g window-status-format "(#I:#W)"
2018-04-08 07:32:51 -07:00
setw -g window-status-current-style "fg=yellow,bg=black"
setw -g window-status-current-format "(#I:#W)"
2018-04-08 07:32:51 -07:00
setw -g window-status-bell-style "fg=red"
setw -g window-status-activity-style "fg=brightred"
2012-08-07 13:04:05 -07:00
2013-01-07 09:51:06 -08:00
setw -g alternate-screen on
2012-03-14 13:59:10 -07:00
2013-01-07 09:51:06 -08:00
setw -g clock-mode-style 24
2012-03-14 13:59:10 -07:00
# Lock the screen after 120 seconds
set-option -g lock-after-time 0
set-option -g lock-command "tmux clock-mode"
2012-03-14 13:59:10 -07:00
bind-key C-a last-window
# TODO: Decide if this should have a -n (allow invoking the command without the leader).
2016-09-16 14:08:27 -07:00
bind-key C-k clear-history
2018-04-08 07:32:51 -07:00
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R