Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 1.01 KB
# Set prefix to Ctrl-Space
unbind C-b
set -g prefix C-Space
bind Space send-prefix
# Reload tmux configurations
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf configurations reloaded"
bind-key - split-window -v -c '#{pane_current_path}' # split window in vertical
bind-key \ split-window -h -c '#{pane_current_path}' # split window in horixontal
# Navigate between panes like a boss (similar to vi navigation keys)
bind-key -n C-h select-pane -L
bind-key -n C-j select-pane -D
bind-key -n C-k select-pane -U
bind-key -n C-l select-pane -R
# Windows configurations
bind c new-window -c "#{pane_current_path}" # Open new windows in current path
set -g base-index 1 # Start window numbering at 1
set -g renumber-windows on # Renumber windows as they are created
# Resize panes using shift and arrow keys
bind -n S-Left resize-pane -L 2
bind -n S-Right resize-pane -R 2
bind -n S-Down resize-pane -D 1
bind -n S-Up resize-pane -U 1
# Use colors in the right way
set-option -g default-terminal "screen-256color"
You can’t perform that action at this time.