Last active
June 5, 2019 08:00
-
-
Save venkytv/7e6744918abf74c426bfc79b2d0a3737 to your computer and use it in GitHub Desktop.
tmux conf
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
# Prefix to match screen | |
unbind C-b | |
set -g prefix C-a | |
bind a send-prefix | |
# | |
# Key bindings | |
# | |
bind-key C-a last-window | |
# Spliting window into panes | |
unbind % | |
bind | split-window -h | |
bind - split-window -v | |
bind _ split-window -v -l 10 -b | |
unbind '"' | |
bind '"' choose-window | |
bind u command-prompt "rename-window '%%'" | |
bind U set-window-option automatic-rename on | |
unbind x | |
unbind & | |
bind K confirm-before "kill-window" | |
unbind C-o | |
bind C-o select-pane -t :.+ | |
bind > command-prompt "move-window -t '%%'" | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind C-h select-pane -L | |
bind C-j select-pane -D | |
bind C-k select-pane -U | |
bind C-l select-pane -R | |
bind " " next-window | |
bind C-" " next-window | |
bind BSpace previous-window | |
bind DC previous-window | |
bind * list-clients | |
bind m show-messages | |
bind @ display-panes | |
unbind C-X | |
bind C-X lock-server | |
unbind x | |
bind x lock-server | |
bind C-[ copy-mode | |
bind C-] paste-buffer | |
set -g history-limit 100000 | |
set -g set-titles on | |
set -g bell-action none | |
set -g visual-bell on | |
set -g display-panes-time 3000 | |
set -g visual-activity on | |
set -g default-terminal "screen-256color" | |
# Status line | |
set -g status-position top | |
set -g status-bg white | |
set -g status-fg black | |
set -g status-left '' | |
set -g status-right '#[bg=blue,fg=white,bold] #S | #(whoami)@#(hostname -s) ' | |
set -g window-status-current-attr bold | |
# Window options | |
set-window-option -g automatic-rename on | |
set-window-option -g aggressive-resize on | |
set-window-option -g xterm-keys on | |
set-window-option -g window-status-format ' #I #W ' | |
set-window-option -g window-status-current-format '#[fg=white,bold] #I #W ' | |
set-window-option -g window-status-current-bg blue | |
set-window-option -g monitor-activity on | |
set-window-option -g window-status-activity-attr none | |
set-window-option -g window-status-activity-style bold,bg=colour228 | |
# Keybindings | |
set-window-option -g mode-keys vi | |
set -g status-keys emacs | |
if-shell 'test "$SSH_CONNECTION"' 'set -g status-bg red' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment