Last active
June 19, 2017 04:32
-
-
Save wyqydsyq/8e587095a6c2858c69d1e1bba94c312c to your computer and use it in GitHub Desktop.
My Tmux Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run-shell "powerline-daemon -q" | |
source "/usr/lib/python3.6/site-packages/powerline/bindings/tmux/powerline.conf" | |
set-option -ga terminal-overrides ",xterm-256color:Tc" | |
set-option -g renumber-windows on | |
set-option -g history-limit 9001 | |
set -g base-index 1 | |
set -g mouse on | |
# Use Alt-arrow keys without prefix key to switch panes | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# Enable pane border status titles | |
set -g pane-border-status top | |
set -g pane-border-format "┤ #{pane_current_path} → #{pane_current_command} ├" | |
# rebind prefix | |
unbind C-b | |
set-option -g prefix C-Space | |
bind-key C-Space send-prefix | |
# Reload tmux config | |
bind r source-file ~/.tmux.conf | |
# attach session if not already | |
new-session -n $HOST | |
# open new panes to PWD instead of $HOME | |
bind '%' split-window -h -c '#{pane_current_path}' # Split panes horizontal | |
bind '"' split-window -v -c '#{pane_current_path}' # Split panes vertically | |
bind c new-window -c '#{pane_current_path}' # Create new window | |
# load TPM plugins | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
# load TPM | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment