12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- # -*- tmux.conf -*-
- ### Global settings ###
- #
- # terminal type, history size, env
- #
- set -g default-terminal "screen-256color"
- set -g xterm-keys on
- set -g history-limit 102400
- setw -g aggressive-resize on
- set -g update-environment "DISPLAY WINDOWID SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
- #set -g terminal-overrides 'xterm*:smcup@:rmcup@'
- set -g mouse off
- ### Backport some “screen” setting ###
- #
- # the magic key is Ctrl-a instead of Ctrl-b (the default)
- #
- unbind C-b
- unbind l
- set -g prefix C-a
- #
- # Ctrl-a Ctrl-a jump to the previous window
- #
- bind-key C-a last-window
- ### Some shortcuts ###
- #
- # quickly reload config file
- #
- bind r source-file ~/.tmux.conf
- #
- # killing the window
- #
- bind k confirm-before kill-window
- #
- # Ctrl-a a, useful for the $SHELL
- #
- bind a send-prefix
- #
- # splitting the windows
- #
- bind h split-window
- bind v split-window -h
- #
- # enter copy mode
- #
- unbind [
- bind * copy-mode
- ### Decoration settings ###
- #
- # some colors
- #
- set -g status-bg black
- set -g status-fg white
- #set -g set-titles-string '#H #S #I #P #W #T' # window number,program name,active (or not)
- set-window-option -g window-status-current-fg red
- set-window-option -g window-status-current-bg default
- #
- # status bar settings
- #
- set -g status-interval 60
- set -g status-left '#[fg=green]#(hostname)#[default] '
- set -g status-right "#[fg=yellow]up: #(uptime|cut -d ' ' -f 4-| sed 's/ days, /d,/ ; s/ load average: /load: /')#[default] #[fg=green]%H:%M %d-%m-%Y#[default] (#S)"
- set -g status-right-length 70
- ### Decoration settings ###
|