dotfiles/tmux/tmux.conf
Bill Niblock cf8c5e78a6 Modify configs
- Updated vimrc to point to in-repo files, for Fugitive
- Modified tmux status bar to include better details
     - Created clocks.sh to show multiple timezones
     - Added to right-side of tmux status bar
2015-11-07 17:00:15 -05:00

98 lines
2 KiB
Bash

############
######
# Tmux Configuration for niblock
###
############
#tmux display things in 256 colors
set -g default-terminal "screen-256color"
#start window numbers at 1
set -g base-index 1
setw -g pane-base-index 1
#renumber windows sequentially after closing any of them
set -g renumber-windows on
#change default delay to be a bit more responsive
set -s escape-time 1
######
# Mouse
###
setw -g mode-mouse on
set -g mouse-select-pane on
######
# Colors
###
## Status Bar and Related Items
# Bar itself
set -g status-fg cyan
set -g status-bg black
# window list
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg black
setw -g window-status-current-attr bright
## Pane Dividers
# set -g pane-border-fg color
# set -g pane-border-bg color
set -g pane-active-border-fg black
set -g pane-active-border-bg cyan
## Command Line
set -g message-fg red
set -g message-bg black
set -g message-attr bright
######
# Status Line
###
set -g status-utf8 on
setw -g monitor-activity on
set -g visual-activity on
set -g status-left-length 40
set -g status-left "#[bright][ #S ]"
set -g status-right-length 60
set -g status-right "#(~/Workbench/dotfiles/tmux/clocks.sh)"
######
# Keybinds
###
#act like vim
setw -g mode-keys vi
#pane movement
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
#window movement
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
#pane resizing
bind -r H resize-pane -L 10
bind -r J resize-pane -D 10
bind -r K resize-pane -U 10
bind -r L resize-pane -R 10
#split window and fix path for tmux 1.9
bind | split-window -h #-c "#{pane_current_path}"
bind - split-window -v #-c "#{pane_current_path}"
# reload config file
bind r source-file ~/.tmux.conf \; display "Config Reloaded!"
# copy/paste improvements :: NOT WORKING PROPERLY NOW
#bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"