Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (50 sloc) 1.86 KB
# remap prefix to Control + ]
unbind C-b
set -g prefix C-]
#bind C-a send-prefix
bind-key ] send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# start window numbering at 1 for easier switching
set -g base-index 1
# rebind pane tiling
bind h split-window -h -c '#{pane_current_path}' # Split panes horizontal
bind v split-window -v -c '#{pane_current_path}' # Split panes vertically
# bind fast session switching
unbind S
bind S command-prompt "attach-session -d -t %1"
# default statusbar colors
set -g status-fg white
set -g status-bg default
# Increase history
set -g history-limit 100000
# default window title colors
set-window-option -g window-status-fg white
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
# statusline
set -g status-left-length 50
set -g status-left '#[fg=green][ #H #[fg=magenta]#S #[fg=green]]['
set -g status-right '#[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%I:%M #[fg=green]]'
set-window-option -g window-status-current-format "#[fg=red](#[fg=white]#I#F$ #W#[fg=red])"
set-window-option -g window-status-format "(#[fg=normal]#I#F$ #W"")"
# Set window titles to cwd
set-option -g status-interval 5
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
# Ensure we are in emacs mode
set-window-option -g mode-keys emacs
# Make pbcopy work
set-option -g default-command "reattach-to-user-namespace -l $SHELL"
# Set up TPM and plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Enable automatic restore
set -g @continuum-restore 'on'
run '~/.tmux/plugins/tpm/tpm'