Last active
October 27, 2015 14:21
-
-
Save talos/018c9a5783ce9b69511e to your computer and use it in GitHub Desktop.
.tmux.conf
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
# create a new session if there isn't one already | |
# new-session | |
# look good | |
set -g default-terminal "xterm-256color" | |
# # doesn't work :( | |
# # Pasteboard | |
# set-option -g default-command "reattach-to-user-namespace -l \"$SHELL\"" | |
# bind-key 'P' run-shell "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer" | |
# bind-key 'Y' run-shell "tmux show-buffer | pbcopy" | |
# Start numbering at 1 | |
set -g base-index 1 | |
# Allows for faster key repetition | |
set -s escape-time 0 | |
# Vim-like pane selection | |
unbind l | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# 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 on | |
# Anichols tmux config derived from various sources on the Internet | |
# Thank you all | |
# Aaron Nichols <[email protected]> T: @anichols | |
# http://www.opsbs.com | |
# Change prefix key to Ctrl+a | |
unbind C-b | |
set -g prefix C-a | |
# Last active window | |
bind C-a last-window | |
bind C-p previous-window | |
bind C-n next-window | |
bind -n f7 previous-window | |
bind -n f8 next-window | |
# Resize bindings (vim like) | |
bind C-k resize-pane -U | |
bind C-j resize-pane -D | |
bind C-h resize-pane -L | |
bind C-l resize-pane -R | |
# Change window move behavior | |
bind . command-prompt "swap-window -t '%%'" | |
bind > command-prompt "move-window -t '%%'" | |
# Copy mode | |
unbind [ | |
bind Escape copy-mode | |
# Use Vi mode | |
setw -g mode-keys vi | |
# Make mouse useful in copy mode | |
#setw -g mode-mouse on | |
unbind p | |
bind p paste-buffer | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
# More straight forward key bindings for splitting | |
unbind % | |
bind | split-window -h | |
#bind h split-window -h | |
unbind '"' | |
bind - split-window -v | |
#bind v split-window -v | |
# History | |
set -g history-limit 1000 | |
# Pane | |
#unbind o | |
#bind C-s down-pane | |
# Terminal emulator window title | |
set -g set-titles on | |
set -g set-titles-string '#S:#I.#P #W' | |
# Status Bar | |
set-option -g status-bg black | |
set-option -g status-fg cyan | |
# Notifying if other windows has activities | |
setw -g monitor-activity off | |
set -g visual-activity on | |
# Highlighting the active window in status bar | |
setw -g window-status-current-bg red | |
setw -g window-status-current-fg white | |
# Clock | |
setw -g clock-mode-colour green | |
setw -g clock-mode-style 24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment