You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/tmux.conf

78 lines
2.1 KiB

11 years ago
# ncurses not polluting scroll history
set -g alternate-screen on
# dont respect smaller windows
setw -g aggressive-resize on
# allow arrow keys to pass to inner sessions
set -g terminal-overrides "screen*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@"
11 years ago
# command prefix
unbind C-b
set -g prefix C-a
11 years ago
bind a send-prefix
bind-key C-a last-window
11 years ago
# basic settings
set -g history-limit 30000
set-option -g default-shell /usr/bin/zsh
set-window-option -g utf8 on
set -g base-index 1
11 years ago
# vi mode
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# escape mode
unbind [
bind Escape copy-mode
11 years ago
set -s escape-time 0
11 years ago
# switch windows
bind -r j previous-window
bind -r k next-window
11 years ago
# fixes redraw bugs
set -g default-terminal screen-256color
11 years ago
# splitting
unbind %
unbind '"'
11 years ago
bind + split-window -h
bind - split-window -v
bind -r C-h run "tmux select-pane -L"
bind -r C-j run "tmux select-pane -D"
bind -r C-k run "tmux select-pane -U"
bind -r C-l run "tmux select-pane -R"
bind -r C-Down resize-pane -D 2
bind -r C-Up resize-pane -U 2
bind -r C-Left resize-pane -L 2
bind -r C-Right resize-pane -R 2
bind-key b command-prompt -p "create pane from:" "join-pane -s ':%%'"
bind-key v command-prompt -p "send pane to:" "join-pane -t ':%%'"
11 years ago
# window title
set-option -g set-titles on
set-option -g set-titles-string '[#H]: #W'
11 years ago
set-window-option -g automatic-rename on
11 years ago
# no visual activity
set -g visual-activity off
set -g visual-bell off
# status bar
set-option -g status-utf8 on
set-option -g status-justify left
set-option -g status-bg black
set-option -g status-fg cyan
set-option -g status-interval 5
set-option -g status-left-length 0
set-option -g status-right-length 80
11 years ago
set-option -g status-left ''
set-option -g status-right '#[fg=blue,bold]#H #[fg=green,bold]|#[fg=black,bold]#(uptime | rev | cut -d":" -f1 | rev | sed s/,//g ) #[fg=green,bold]| #[fg=blue,bold]%d.%m.%y %H:%M'
11 years ago
set-window-option -g window-status-current-fg black
set-window-option -g window-status-current-bg green
# clock
set-window-option -g clock-mode-colour cyan
set-window-option -g clock-mode-style 24