# required (only) on OS X #set-option -g default-command "reattach-to-user-namespace -l zsh" # set colors set -g default-terminal "tmux-256color" set-option -ga terminal-overrides ",*256col*:Tc" # increase scrollback buffer size set -g history-limit 10000 # Allow terminal app to control scrolling # http://superuser.com/questions/310251/use-terminal-scrollbar-with-tmux set -g terminal-overrides 'xterm*:smcup@:rmcup@' # start windows numbering at 1 set -g base-index 1 # make pane numbering consistent with windows setw -g pane-base-index 1 # renumber windows sequentially after closing any of them set -g renumber-windows on # emacs key bindings in tmux command prompt (prefix + :) are better than # vi keys, even for vim users set-option -g status-keys emacs # focus events enabled for terminals that support them set-option -g focus-events on # screen-style commands unbind C-b set -g prefix C-a # pressing `prefix + prefix` sends to the shell bind a send-prefix # Wrangle Panes bind -r C-j resize-pane -D 5 bind -r C-k resize-pane -U 5 bind -r C-h resize-pane -L 5 bind -r C-l resize-pane -R 5 # tmux messages are displayed for 4 seconds set-option -g display-time 4000 # refresh 'status-left' and 'status-right' more often set-option -g status-interval 5 # xterm-compatible keys? Yes, please! set-window-option -g xterm-keys on # disable activity window messages set-window-option -g visual-activity off # disable delay between escape and subsequent keypresses (http://superuser.com/a/252717/65504) set -sg escape-time 0 # mouse mode #set-option -g mode-mouse on # 24 hour clock set-window-option -g clock-mode-style 24 set-window-option -g clock-mode-colour colour64 # default statusbar colors set-option -g status-style bg=colour235,fg=colour179 # default window title colors set-window-option -g window-status-style fg=colour250,bg=default # active window title colors set-window-option -g window-status-current-style fg=colour153,bg=default,bright # pane border set-option -g pane-border-style fg=colour235 set-option -g pane-active-border-style fg=colour240 # pane number display set-option -g display-panes-active-colour colour33 set-option -g display-panes-colour colour166 # Nord theme run-shell "~/.tmux/themes/nord-tmux/nord.tmux"