Created
June 9, 2015 20:25
-
-
Save danilovazb/c46b5e1576b8a1f843c4 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
# Set a Ctrl-b shortcut for reloading your tmux config | |
bind r source-file ~/.tmux.conf | |
# Set the prefix to be ^A | |
unbind C-b | |
set -g prefix C-a | |
# In a nested tmux session, pressing ^A twice will interact with the inner one | |
bind C-a send-prefix | |
# Rename your terminals | |
set -g set-titles on | |
set -g set-titles-string '#(whoami)::#h::#(curl ipecho.net/plain;echo)' | |
# Move between panels using Alt + Arrows | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# Move between windows using Shift + Arrows | |
bind -n S-Left next-window | |
bind -n S-Right previous-window | |
# Resize panels using ^+Shift+Arrows | |
bind -n C-S-Left resize-pane -L | |
bind -n C-S-Down resize-pane -D | |
bind -n C-S-Up resize-pane -U | |
bind -n C-S-Right resize-pane -R | |
# Status bar customization | |
set -g status-utf8 on | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-interval 5 | |
set -g status-left-length 90 | |
set -g status-right-length 60 | |
set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=blue]\ | |
#h#[fg=white]::##[fg=yellow]#(curl ipecho.net/plain;echo)" | |
set -g status-justify left | |
set -g status-right '#[fg=Cyan]#S #[fg=white]%a %d %b %R' | |
# Monitor activity | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# History size | |
set -g history-limit 100000 | |
# Xterm | |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
# Default shell | |
set-option -g default-shell /bin/bash | |
# Mouse mode | |
setw -g mode-mouse on | |
# Allow mouse to select which pane to use | |
set -g mouse-select-pane on | |
# set window list colors - red for active and blue for inactive | |
set-window-option -g window-status-fg brightblue #base0 | |
set-window-option -g window-status-bg colour236 | |
set-window-option -g window-status-attr dim | |
set-window-option -g window-status-current-fg brightred #orange | |
set-window-option -g window-status-current-bg colour236 | |
set-window-option -g window-status-current-attr bright | |
# ^D is now detach | |
bind-key -n C-d detach | |
# Allows for faster key repetition | |
set -s escape-time 0 | |
# Makes copy/paste work decently (pb) | |
#set-option -g default-command "reattach-to-user-namespace -l zsh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment