set-option -g prefix C-a bind-key C-a send-prefix bind \\ split-window -h bind - split-window -v bind j select-pane -D bind k select-pane -U bind h select-pane -L bind l select-pane -R bind s choose-tree -sZ -O name setw -g mode-keys vi bind / copy-mode \; send-key / bind ? copy-mode \; send-key ? bind -Tcopy-mode-vi 'v' send -X begin-selection bind -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel pbcopy bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced' bind . attach-session -t . -c '#{pane_current_path}' set -g mouse on set -g allow-rename off set -g allow-passthrough on set -g history-limit 50000 set -g default-terminal "tmux" # install with tic -x tmux.terminfo set-option -sa terminal-overrides ",xterm*:Tc" # Send the escape key after 10ms (Defaults to 500ms) set -s escape-time 10 # colors set -g pane-active-border-style bg=default,fg="colour14" set -g pane-border-style fg="colour239" set -g message-style fg=black,bg="colour14" set -g status-justify left set -g status-style bg="colour236",fg="colour14" setw -g clock-mode-colour "colour14" setw -g status-left " #S " setw -g status-left-style fg=black,bg="colour14" set -g status-right-length "100" # 24 hour time: `%H:%M` # 12 hour time: `%-I:%M %p` set -g status-right "#[bg=colour239]#[fg=white] %a %B %-d, %Y #[fg=colour14].:. #[fg=white]%H:%M #[fg=black,bg=colour14] #h " setw -g window-status-format " #I: #W " # separator symbols: ┃ ║ │ ❮ ❯ ╲ ╱ left bar: ⎸ right bar: ⎹ setw -g window-status-separator "" setw -g window-status-style fg="colour14" setw -g window-status-current-style fg=white,bg="colour239" setw -g window-status-current-format "#[fg="colour14"] #[fg=white]#I: #W#[fg=colour14] " setw -g window-status-bell-style fg="colour9" setw -g window-status-activity-style fg=yellow # List of plugins # install with: # git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm # prefix I set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @resurrect-capture-pane-contents 'on' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' # CHEAT SHEET: # # update working dir of a session to current dir # prefix . # # swap two panes # on one prefix m # on the other :swap-pane # # REQUIRES TPM # # save pane layout prefix C-s # restore pane layout prefix C-r #