# New prefix: C-q instead of C-b. set-option -g prefix C-q unbind-key C-b # "C-q q" will send "C-q" to the terminal. bind-key q send-prefix # Theme. set -g status-bg blue set -g status-fg white setw -g window-status-current-bg white setw -g window-status-current-fg black setw -g window-status-bell-fg red setw -g window-status-bell-bg white set -g status-left "#[default]" # Prints the hostname. set -g status-right "#H" # No unnecessary redrawing. set -g status-interval 0 # 10,000 lines of history in each pane. set -g history-limit 10000 # When a window is removed, renumber all the windows. set -g renumber-windows on # Opens a new window visiting $HOME. bind-key c new-window -a # Opens a new window visiting the current directory. bind-key C-c new-window -a -c '#{pane_current_path}' # Pane configuration. unbind % bind | split-window -h bind - split-window -v # Pane movement. bind-key g command-prompt -p "Get pane:" "join-pane -s ':%%'" bind-key m command-prompt -p "Move pane to:" "join-pane -t ':%%'" bind-key C-o select-pane -t :.+ bind-key O rotate-window # Asks for a new window name. bind-key r command-prompt "rename-window '%%'" # Switching the previously visited window. bind-key C-q last-window # Switching to left or right window. bind-key C-p previous-window bind-key -n S-Left previous-window bind-key C-n next-window bind-key -n S-Right next-window # Moving a window to the left or to the right. bind-key -n S-Down swap-window -t -1 bind-key -n S-Up swap-window -t +1 # Moving to the window named "emacs". bind-key C-a select-window -t emacs bind-key a select-window -t emacs # Entering copy mode. bind-key C-e copy-mode bind-key e copy-mode # Copying the buffer. bind-key y paste-buffer bind-key C-y paste-buffer # Reloads the configuration. bind R source-file ~/.tmux.conf