Created
December 2, 2014 21:24
-
-
Save Nagyman/8f34d7eb9bb7ee81e2e8 to your computer and use it in GitHub Desktop.
Revisions
-
Craig Nagy created this gist
Dec 2, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,53 @@ # Change the bindings prefix from Control+b to Control+a set -g prefix C-a # Press the binding twice to toggle between windows bind-key C-a last-window # Helpful for nested tmux sessions bind-key a send-prefix # Press C-a Escape to enter copy mode bind-key Escape copy-mode # Split vertically using the pipe character bind | split-window -h # Split horizontally using the dash bind - split-window -v # Paste buffer copied from copy mode bind P paste-buffer # Start window numbering at 1 instead of 0 #set -g base-index 1 # Allow faster command sequences set -s escape-time 0 # Rather than constraining window size to the maximum size of any client # connected to the *session*, constrain window size to the maximum size of any # client connected to *that window*. Much more reasonable. setw -g aggressive-resize off # Try to look better set -g default-terminal "screen-256color" # Set status bar set -g status-bg black set -g status-fg white set -g status-left "" set -g status-right "#[fg=green]#H" # Highlight active window setw -g window-status-current-bg red # Rebind navigating panes/splits to vi movements bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R # Use vi mode keys setw -g mode-keys vi