Last active
December 18, 2015 10:45
-
-
Save zemanel/ab109d70b32fd633f5e6 to your computer and use it in GitHub Desktop.
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-environment -g POWERLINE_CONFIG_COMMAND /Users/jose/Library/Python/2.7/bin/powerline-config | |
#source "/Users/jose/Library/Python/2.7/lib/python/site-packages/powerline/bindings/tmux/powerline.conf" | |
# | |
## Powerline theme | |
## | |
# | |
## Enable Powerline symbols (unless already specified otherwise in environment) | |
#if-shell ': ${TMUX_POWERLINE_SYMBOLS?}' '' 'set-environment -g TMUX_POWERLINE_SYMBOLS "powerline"' | |
# | |
## Toggle between Powerline and Unicode symbols with ^B P | |
#bind-key P if-shell 'test $(echo "${TMUX_POWERLINE_SYMBOLS}") = "unicode"' 'set-environment -g TMUX_POWERLINE_SYMBOLS "powerline" ; source-file "$HOME/.tmux/powerline-theme/powerline-theme.conf"' 'set-environment -g TMUX_POWERLINE_SYMBOLS "unicode" ; source-file "$HOME/.tmux/powerline-theme/powerline-theme.conf"' | |
# | |
## Load Powerline theme | |
#source-file "$HOME/.tmux/powerline-theme/powerline-theme.conf" | |
#set -g default-terminal "xterm" | |
set -g default-terminal "screen-256color" | |
set -g status-left-length 20 | |
set -g status-right-length 100 | |
#Prefix is Ctrl-a | |
set -g prefix C-a | |
bind C-a send-prefix | |
unbind C-b | |
set -sg escape-time 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
#Mouse works as expected | |
#set -g mode-mouse on | |
#set -g mouse-select-pane on | |
#set -g mouse-resize-pane on | |
#set -g mouse-select-window on | |
set -g mouse-utf8 on | |
set -g mouse on | |
setw -g monitor-activity on | |
set -g visual-activity on | |
set -g mode-keys vi | |
set -g history-limit 10000 | |
# y and p as in vim | |
bind Escape copy-mode | |
unbind p | |
bind p paste-buffer | |
bind -t vi-copy 'v' begin-selection | |
bind -t vi-copy 'y' copy-selection | |
bind -t vi-copy 'Space' halfpage-down | |
bind -t vi-copy 'Bspace' halfpage-up | |
# extra commands for interacting with the ICCCM clipboard | |
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" | |
bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer" | |
# easy-to-remember split pane commands | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
# moving between panes with vim movement keys | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# moving between windows with vim movement keys | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# resize panes with vim movement keys | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment