Last active
October 13, 2016 08:06
-
-
Save iambibhas/29381a37b0b0be9dc22e to your computer and use it in GitHub Desktop.
My 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
# use UTF8 | |
set -g utf8 | |
set-window-option -g utf8 on | |
# make tmux display things in 256 colors | |
set -g default-terminal "screen-256color" | |
# set scrollback history to 100000 (100k) | |
set -g history-limit 100000 | |
# set Ctrl-a as the default prefix key combination | |
# and unbind C-b to free it up | |
set -g prefix C-a | |
unbind C-b | |
# set default shell | |
set-option -g default-shell /usr/bin/zsh | |
# use send-prefix to pass C-a through to application | |
bind C-a send-prefix | |
# use PREFIX | to split window horizontally and PREFIX - to split vertically | |
bind | split-window -h -c "#{pane_current_path}" | |
bind _ split-window -v -c "#{pane_current_path}" | |
# map Shift-arrow movement keys as pane movement keys | |
bind -n S-left select-pane -L | |
bind -n S-down select-pane -D | |
bind -n S-up select-pane -U | |
bind -n S-right select-pane -R | |
# meta left/right cycles windows | |
bind -n M-right next | |
bind -n M-left prev | |
# reload ~/.tmux.conf using PREFIX r | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# ---------------------- | |
# Status Bar | |
# ----------------------- | |
set-option -g status on # turn the status bar on | |
set -g status-utf8 on # set utf-8 for the status bar | |
set -g status-interval 3 # set update frequencey (default 15 seconds) | |
set -g status-justify left # center window list for clarity | |
# set-option -g status-position top # position the status bar at top of screen | |
# visual notification of activity in other windows | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# set color for status bar | |
set-option -g status-bg colour235 #base02 | |
set-option -g status-fg yellow #yellow | |
set-option -g status-attr dim | |
# show session name, window & pane number, date and time on right side of | |
# status bar | |
set -g status-right-length 100 | |
set -g status-right '#(~/.tmux-status-scripts/cpuload.sh)#(~/.tmux-status-scripts/cputemp.sh)#(~/.tmux-status-scripts/netload.sh wlan0)#(~/.tmux-status-scripts/battery.sh)#(date +"%a %b %_d %I:%M:%S")' | |
# Set vi mode | |
set -g @shell_mode 'vi' | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-copycat' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
# Solarized colors | |
set -g @plugin 'seebi/tmux-colors-solarized' | |
set -g @colors-solarized 'dark' | |
# ---------------------- | |
# set some pretty colors | |
# ---------------------- | |
set -g pane-border-fg magenta | |
set -g pane-border-style bg=yellow,bold,underscore | |
set -g pane-active-border-style fg=green,bold,underscore | |
# THIS SHOULD BE AT THE BOTTOM AT ALL TIMES | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment