Created
June 6, 2013 23:55
-
-
Save trishume/5726031 to your computer and use it in GitHub Desktop.
My tmux config
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
## keybindings | |
unbind % | |
unbind , | |
unbind . | |
unbind n | |
unbind p | |
unbind [ | |
unbind '"' | |
unbind l | |
unbind & | |
unbind "'" | |
bind-key C-a last-window | |
bind-key | split-window -h | |
bind-key \ split-window -h | |
bind-key - split-window -v | |
bind-key x kill-pane | |
bind-key X kill-window | |
bind-key q confirm-before kill-session | |
bind-key Q confirm-before kill-server | |
bind-key , previous-window # < | |
bind-key . next-window # > | |
bind-key < swap-window -t :- | |
bind-key > swap-window -t :+ | |
bind-key n command-prompt 'rename-window %%' | |
bind-key N command-prompt 'rename-session %%' | |
bind-key Escape copy-mode -u | |
bind-key Up copy-mode -u | |
bind-key r source-file ~/.tmux.conf; display-message " ✱ ~/.tmux.conf is reloaded" | |
bind-key R refresh-client | |
bind-key a send-key C-a | |
bind-key C-j resize-pane -L 5 | |
bind-key C-l resize-pane -R 5 | |
bind-key C-k resize-pane -D 5 | |
bind-key C-i resize-pane -U 5 | |
bind-key z splitw -h pry | |
unbind-key j | |
bind-key j select-pane -D # Similar to 'C-w j' to navigate windows in Vim | |
unbind-key k | |
bind-key k select-pane -U | |
unbind-key h | |
bind-key h select-pane -L | |
unbind-key l | |
bind-key l select-pane -R | |
# Bind a different key to copy-selection | |
bind -t vi-copy y copy-selection | |
## set status bar | |
set-option -g status-utf8 on | |
set-option -g status-bg colour11 | |
set-option -g status-fg colour8 | |
#set-option -g status-left '⣿' | |
#set-option -g status-right '⡇ #[bold]❐ #S:#I#[default] ⡇ #[bold]#(whoami) ● #H#[default] ' | |
#set-option -g status-right '⡇ ❐ #S ⡇ ❖ #(rvm tools identifier) ⡇ #(whoami) ● #H ' | |
set-option -g status-left ' #[bold]❐ #S#[default] ⡇' | |
set-option -g status-right '#[bold]#(whoami) ● #H#[default] ' | |
set-option -g status-right-length 60 | |
set-option -g status-left-length 60 | |
## highlight active window | |
set-window-option -g window-status-current-bg colour166 | |
set-window-option -g window-status-current-fg colour15 | |
set-window-option -g window-status-current-attr bold | |
set-window-option -g window-status-current-format ' #I #W ' | |
## set window notifications | |
set-option -g visual-activity on | |
set-option -g visual-content on | |
set-window-option -g monitor-activity on | |
set-window-option -g automatic-rename off | |
## tmux window titling for X | |
set-option -g set-titles on | |
set-option -g set-titles-string '[#I] #W' | |
set-window-option -g automatic-rename on | |
set-window-option -g window-status-format ' #I #W ' | |
set-window-option -g window-status-attr bold | |
# starts windows at 1 not 0 | |
set-option -g base-index 1 | |
## enable mouse | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
set-option -g mouse-resize-pane on | |
set-window-option -g mode-keys vi | |
set-window-option -g mode-mouse on | |
# set-window-option -g monitor-activity off | |
# set-window-option -g monitor-content off | |
# set-option -g status-keys vi | |
# set-option -g history-limit 4096 | |
## pane border and colors | |
set-option -g pane-active-border-fg yellow | |
set-option -g pane-border-fg white | |
## good copy paste | |
#set-option -g default-command "reattach-to-user-namespace -l zsh" # or bash... | |
#bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" | |
#bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer" | |
#misc config | |
set -g default-terminal "screen-256color" | |
new-session -s tbox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment