Last active
December 4, 2015 10:55
-
-
Save lighta971/5991459c53fabcc50400 to your computer and use it in GitHub Desktop.
My tmux.conf
This file contains 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
set-option -g status-utf8 on | |
# Change key binding | |
set prefix C-a | |
unbind-key C-b | |
bind-key C-a send-prefix | |
#Powerline integration | |
#run-shell "powerline-daemon -q" | |
#source "/home/lighta/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf" | |
# windows/panes starts at 1 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
# prevent tmux to rename windows | |
set-option -g allow-rename off | |
# ctrl+pageup/pagedown cycles thru windows(sublimetext like) | |
bind-key -n C-Pagedown next | |
bind-key -n C-Pageup prev | |
# alt+directions navigates through panes | |
bind-key -n M-left select-pane -L | |
bind-key -n M-right select-pane -R | |
bind-key -n M-up select-pane -U | |
bind-key -n M-down select-pane -D | |
#Shortcut to reload conf | |
bind r source-file ~/.tmux.conf | |
# Scroll History | |
set -g history-limit 30000 | |
# Following mouse configs cause to have to | |
# hold shift key when you want select text | |
# Make mouse useful in copy mode | |
setw -g mode-mouse on | |
# Allow mouse to select which pane to use | |
set -g mouse-select-pane on | |
# Allow mouse dragging to resize panes | |
set -g mouse-resize-pane on | |
# Allow mouse to select windows | |
set -g mouse-select-window on | |
# Allow xterm titles in terminal window, terminal scrolling with scrollbar, and setting overrides of C-Up, C-Down, C-Left, C-Right | |
# (commented out because it disables cursor navigation in vim) | |
#set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment