50 lines
1.3 KiB
Plaintext
Executable File
50 lines
1.3 KiB
Plaintext
Executable File
#set -g default-terminal "screen-256color"
|
|
set-window-option -g mode-keys vi
|
|
|
|
# Copy as in vim
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
|
|
|
# remap prefix from 'C-b' to 'C-a'
|
|
unbind C-b
|
|
set-option -g prefix C-a
|
|
bind-key C-a send-prefix
|
|
|
|
# split panes using v and f
|
|
bind v split-window -h
|
|
bind f split-window -v
|
|
unbind '"'
|
|
unbind %
|
|
|
|
# reload config file (change file location to your the tmux.conf you want to use)
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
# vi-like keybindings
|
|
setw -g mode-keys vi
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
|
|
|
# zenburn theme
|
|
#setw -g clock-mode-colour colour117
|
|
#setw -g mode-attr bold
|
|
#setw -g mode-fg colour117
|
|
#setw -g mode-bg colour238
|
|
#set -g status-bg colour235
|
|
#set -g status-fg colour248
|
|
#setw -g window-status-current-fg colour223
|
|
#setw -g window-status-current-bg colour237
|
|
#setw -g window-status-current-attr bold
|
|
#set -g message-attr bold
|
|
#set -g message-fg colour117
|
|
#set -g message-bg colour235
|
|
|
|
# fancy status line: user@host, date, time
|
|
set-option -g status-right "#(whoami)@#(hostname -s) #[fg=colour187,bold]%a %Y-%m-%d %H:%M"
|
|
set -g status-right-length 50
|
|
set -g status-left-length 20
|