Created
April 13, 2016 07:36
-
-
Save MindFreeze/95dfec1dd87e978e419f5f015be61ffa to your computer and use it in GitHub Desktop.
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
#Allows tmux to work on Cygwin | |
set -sg escape-time 250 | |
# reload config file (change file location to your the tmux.conf you want to use) | |
bind r source-file ~/.tmux.conf | |
# switch panes using Alt-arrow without prefix | |
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 | |
# Enable mouse control (clickable windows, panes, resizable panes) | |
set -g mouse-utf8 on | |
#set -g mouse on | |
set -g mode-mouse on | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on | |
set -g mouse-select-window on | |
#bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" | |
#bind -n WheelDownPane select-pane -t= \; send-keys -M | |
# move with Ctrl-left/right | |
set-window-option -g xterm-keys on | |
# start scrolling with PgUp | |
unbind-key -n PPage | |
bind-key -t emacs-copy PPage page-up | |
bind-key -t emacs-copy NPage page-down | |
# ctrl-t opens new window | |
bind-key -n C-t new-window | |
# window switching with alt + page up/down | |
bind-key -n M-PPage previous-window | |
bind-key -n M-NPage next-window | |
# automatically set window title | |
set -g set-titles on | |
set -g set-titles-string '#T' | |
# ---------------------- | |
# set some pretty colors | |
# ---------------------- | |
# set pane colors - hilight the active pane | |
set-option -g pane-border-fg colour240 #base02 | |
set-option -g pane-active-border-fg colour189 #base01 | |
# colorize messages in the command line | |
set-option -g message-bg black #base02 | |
set-option -g message-fg brightred #orange | |
# ---------------------- | |
# 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 45 # set update frequency (default 15 seconds) | |
set -g status-justify centre # center window list for clarity | |
set-option -g status-position bottom # position the status bar at bottom 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 colour243 #base02 | |
set-option -g status-fg yellow #yellow | |
# set-option -g status-attr dim | |
# set window list colors - red for active and cyan 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 | |
# show host name and IP address on left side of status bar | |
set -g status-left-length 70 | |
set -g status-left "#[fg=green]: #h : #[fg=brightblue]#(curl icanhazip.com) #[fg=yellow]#(ifconfig en0 | grep 'inet ' | awk '{print \"en0 \" $2}') #(ifconfig en1 | grep 'inet ' | awk '{print \"en1 \" $2}') #[fg=red]#(ifconfig tun0 | grep 'inet ' | awk '{print \"vpn \" $2}') " | |
# show session name, window & pane number, date and time on right side of | |
# status bar | |
set -g status-right-length 60 | |
set -g status-right "#[fg=colour183]#S #I:#P #[fg=yellow]:: #(date -u | awk '{print $1}') %d %b %Y #[fg=green]::%l:%M %p" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment