dotfiles/.tmux.conf

45 lines
938 B
Text
Raw Normal View History

2013-10-28 13:41:02 +00:00
# Set C-d as detach
unbind d
bind C-d detach
# Start counting at 1 instead of 0
set -g base-index 1
# Window splitting
unbind %
bind \\ split-window -h
2013-10-28 13:41:02 +00:00
bind - split-window -v
# vim keybindings
setw -g mode-keys vi
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -Tcopy-mode-vi v send -X begin-selection
bind-key -Tcopy-mode-vi y send -X copy-selection
2013-10-28 13:41:02 +00:00
# vim movement
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# vim resizing
# Pane resizing
bind -r C-h resize-pane -L 5
bind -r C-j resize-pane -D 5
bind -r C-k resize-pane -U 5
bind -r C-l resize-pane -R 5
# Highlight active window
set-window-option -g window-status-current-style bg=blue
2013-10-28 13:41:02 +00:00
# Statusbar Tweaking
set -g status-bg black
2013-10-28 13:41:02 +00:00
set -g status-fg white
set -g status-left '#[fg=magenta]#H'
set -g status-right '#[fg=blue]#(uptime | cut -d "," -f 4-)'
set -g status-interval 1