Last active
August 29, 2015 14:09
-
-
Save tskogberg/77489e655d3ba8d3a1ad to your computer and use it in GitHub Desktop.
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
# personal settings for tmux | |
# | |
# changed bindings | |
# vim movments keys for tmux (hjkl) | |
set-window-option -g mode-keys vi | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Full color for Vim. | |
set -g default-terminal "screen-256color" | |
# Make shift+arrows, ctrl+arrows etc work in Vim. | |
set -g xterm-keys on | |
# See if this fixes slow ESC issues. | |
# http://unix.stackexchange.com/questions/23138/esc-key-causes-a-small-delay-in-terminal-due-to-its-alt-behavior | |
set -s escape-time 0 | |
# Start window and pane indices at 1. | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
# No mouse stuff, as it messes with iTerm selection of text and URL opening. | |
set -g mode-mouse off | |
# Don't prompt to kill panes/windows. | |
bind-key x kill-pane | |
bind-key & kill-window | |
# Cycle panes. | |
bind b select-pane -t :.+ | |
bind C-b select-pane -t :.+ | |
# Reload tmux conf. | |
unbind r | |
bind r source-file ~/.tmux.conf\; display "Reloaded conf." | |
# Status bar styling and content. | |
set -g status-bg black | |
set -g status-fg white | |
# Highlight the active window in the status bar. | |
set-window-option -g window-status-current-bg yellow | |
set-window-option -g window-status-current-fg black | |
# Clear tmux scrollback history. | |
# Use C-l in bash to clear the shell: | |
# http://stackoverflow.com/questions/10543684/how-can-i-clear-scrollback-buffer-in-tmux | |
bind -n C-k clear-history | |
# Change the scrollback buffer size (history) | |
set-option -g history-limit 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
maximize https://github.com/henrik/dotfiles/blob/master/tmux.conf#L37-L38