Created
October 12, 2015 00:39
-
-
Save senvey/5c9b344f7678c26c4592 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
# Change the magic key to `^A`: | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key a send-prefix | |
### Some familiar `screen`-like movement bindings ### | |
# `^A^A` to toggle between the last two windows | |
bind-key C-a last-window | |
# `^A space` to move to the next window | |
bind-key Space next-window | |
# `^A ^space` to move to the previous window | |
bind-key C-Space previous-window | |
### Fix some minor annoyances ### | |
# Make 256 color mode work right | |
set-option -g default-terminal screen-256color | |
#unbind the "suspend-client" command. I have to restart my terminal when I hit it by accident. | |
unbind C-z | |
# Lower the delay after pressing Escape that tmux waits for an xterm sequence | |
set-option -sg escape-time 0 | |
# Start from 1, not 0, since 1 is leftmost on my keyboard | |
set-option -g base-index 1 | |
# Make ctrl-arrow work | |
set-window-option -g xterm-keys on | |
# Set xterm window title | |
set-option -g set-titles on | |
# Add SSH_TTY to the list of environment variables tmux knows about: | |
set-option -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION SSH_TTY WINDOWID XAUTHORITY" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment