Skip to content
Permalink
2a7045a751
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
executable file 96 lines (83 sloc) 2.73 KB
## keybindings
unbind C-b
unbind C-a
unbind %
unbind ,
unbind .
unbind n
unbind p
unbind [
unbind '"'
unbind l
unbind &
unbind "'"
set-option -g prefix C-a # C-a for prefix just like screen
bind-key C-a last-window
bind-key | split-window -h
bind-key \ split-window -h
bind-key - split-window -v
bind-key x kill-pane
bind-key X kill-window
bind-key q confirm-before kill-session
bind-key Q confirm-before kill-server
bind-key , previous-window # <
bind-key . next-window # >
bind-key < swap-window -t :-
bind-key > swap-window -t :+
bind-key n command-prompt 'rename-window %%'
bind-key N command-prompt 'rename-session %%'
bind-key Escape copy-mode -u
bind-key Up copy-mode -u
bind-key r source-file ~/.tmux.conf; display-message " ✱ ~/.tmux.conf is reloaded"
bind-key R refresh-client
bind-key a send-key C-a
bind-key C-h resize-pane -L 5
bind-key C-l resize-pane -R 5
bind-key C-j resize-pane -D 5
bind-key C-k resize-pane -U 5
## messages
set-option -g message-fg colour229
set-option -g message-bg colour3
set-option -g display-time 1500
## set status bar
set-option -g status-utf8 on
set-option -g status-interval 1
set-option -g status-fg colour0
set-option -g status-bg default
set-option -g status-left '#[fg=250]⣿'
set-option -g status-right '⣿ ⊙ #S ⡇ #(whoami)@#H ⡇ %Y-%m-%d %H:%M ⣿'
set-option -g status-right-length 100
set-option -g status-left-length 120
## highlight active window
set-window-option -g window-status-current-fg colour4
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
set-window-option -g window-status-current-format '« #I #W »'
## set window notifications
set-option -g visual-activity on
set-option -g visual-content on
set-window-option -g window-status-alert-fg colour226
set-window-option -g window-status-alert-bg colour233
set-window-option -g monitor-activity off
set-window-option -g automatic-rename off
## tmux window titling for X
set-option -g set-titles on
set-option -g set-titles-string '[#I] #W'
set-window-option -g automatic-rename on
set-window-option -g window-status-format ' #I #W '
set-window-option -g window-status-attr bold
# starts windows at 1 not 0
set-option -g base-index 1
## enable mouse
set-option -g mouse-select-pane on
set-window-option -g mode-keys vi
set-window-option -g mode-mouse on
# set-window-option -g monitor-activity off
# set-window-option -g monitor-content off
# set-option -g status-keys vi
# set-option -g history-limit 4096
## pane border and colors
set-option -g pane-active-border-fg colour240
set-option -g pane-border-fg colour240
## Copy/paste
set-option -g default-command "reattach-to-user-namespace -l zsh"