79 lines
2.3 KiB
Bash
79 lines
2.3 KiB
Bash
# Vi mode of course
|
|
setw -g mode-keys vi
|
|
|
|
set-option -sg escape-time 0
|
|
|
|
# 256 colors
|
|
# set-option -g default-terminal xterm-256color
|
|
set -g default-terminal tmux-256color
|
|
set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'
|
|
|
|
# First window is 1 instead of 0
|
|
set-option -g base-index 1
|
|
|
|
# Use C-a as in screen
|
|
set-option -g prefix C-a
|
|
unbind C-b
|
|
bind a send-prefix
|
|
|
|
# Reload .tmux.conf with C-a R
|
|
bind R source-file ~/.tmux.conf \; \
|
|
display-message "Reloaded tmux.conf"
|
|
|
|
# Better split commands
|
|
unbind %
|
|
bind-key | split-window -h -c "#{pane_current_path}"
|
|
bind-key - split-window -v -c "#{pane_current_path}"
|
|
bind-key / split-window -h -c "#{pane_current_path}"
|
|
|
|
# Fix for update 0.9 not opening new windows or panes in the same
|
|
# directory
|
|
bind-key c neww -c "#{pane_current_path}"
|
|
|
|
# Vim keys to move between panes
|
|
bind-key h select-pane -L
|
|
bind-key j select-pane -D
|
|
bind-key k select-pane -U
|
|
bind-key l select-pane -R
|
|
|
|
bind-key C-a last-window
|
|
|
|
bind-key S choose-tree
|
|
bind-key s rotate-window
|
|
|
|
# Configure status line
|
|
set -g status-left-length 52
|
|
set -g status-right-length 451
|
|
set -g status-bg colour234
|
|
set -g status-fg white
|
|
# set -g pane-border-fg colour245
|
|
# set -g pane-active-border-fg colour39
|
|
# set -g message-fg colour16
|
|
# set -g message-bg colour221
|
|
# set -g message-attr bold
|
|
#set -g status-left '#[fg=colour235,bg=colour252,bold] #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀'
|
|
#set -g window-status-format '#[fg=colour234,bg=colour252,nobold]⮀#[fg=colour235,bg=colour252,bold] #I #W #[fg=colour252,bg=colour234,nobold]⮀'
|
|
#set -g window-status-current-format '#[fg=colour234,bg=colour39]⮀#[fg=black,bg=colour39,noreverse,nobold] #I: #W #[fg=colour39,bg=colour234,nobold]⮀'
|
|
#setw -g automatic-rename
|
|
|
|
set -g status-justify centre
|
|
set -g status-bg colour16
|
|
set -g status-left-length 100
|
|
set -g status-fg colour12
|
|
set -g status-left '#[fg=green]#(hostname -s)#[fg=colour12]:#[fg=colour12]#S '
|
|
set -g window-status-format '#[fg=colour12]#I:#W '
|
|
set -g window-status-current-format '#[fg=red]#I:#W#[fg=green]#F #[fg=colour12]'
|
|
|
|
set -g mouse on
|
|
|
|
bind-key k confirm-before -p "Kill window #W? (y/n)" kill-window
|
|
|
|
unbind Space
|
|
bind-key Space next-window
|
|
bind-key L next-layout
|
|
|
|
set -sg escape-time 50
|
|
|
|
# Fixes pasting in osx
|
|
# set -g default-command "reattach-to-user-namespace -l /usr/local/bin/zsh -l"
|