David Blume's GitList
Repositories
dotfiles.git
Code
Commits
Branches
Tags
Search
Tree:
9d33f7a
Branches
Tags
main
pathogen
remove-vim-airline
vim-airline-disabled
vim-powerline
dotfiles.git
.tmux.conf
Tighten status line with tmux conditionals.
dblume
commited
9d33f7a
at 2021-11-21 16:58:55
.tmux.conf
Blame
History
Raw
# C-b already in use by vim for page up. Use screen's prefix. set -g prefix C-a unbind C-b bind C-a send-prefix # Make ^a a send ^a (Useful in minicom) bind-key a send-prefix # No delay for escape key press (vim mode changes) set -sg escape-time 0 # Vim style pane splitting bind-key v split-window -h bind-key s split-window -v # Vim style pane selection bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R # Use Alt-vim keys without prefix key to switch panes bind -n M-h select-pane -L bind -n M-j select-pane -D bind -n M-k select-pane -U bind -n M-l select-pane -R # Use Alt-arrow keys without prefix key to switch panes bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D # Theme set -g status-keys vi set -g status-fg white set -g status-bg colour235 set -g status-left-length 10 set -g status-left "#[fg=green]#{?#{!=:#{window_panes},1},pane #P/#{window_panes},}#[default]" set -g status-justify centre set -g status-right '#[fg=green]%m/%d %H:%M#[default]' setw -g mode-keys vi setw -g automatic-rename off setw -g aggressive-resize set -g allow-rename on #setw -g window-status-current-format '#[fg=yellow]#I:#F:#T:.../#{b:pane_current_path}#[default]' setw -g window-status-current-format '#{?#{!=:#{session_windows},1},#I:#W:,}#[fg=yellow]#{?window_zoomed_flag,Z:,}#{s\/home/dblume\~\:pane_current_path}#[default]' setw -g window-status-format '#[fg=colour241]#I:#W#[default]' # prefix, C-Arrow doesn't work from PuTTY. Needs TERM to be xterm set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@"