Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

242 lines (195 sloc) 5.967 kB
# Our .tmux.conf file
# Setting the prefix from C-b to C-a
# START:prefix
set -g prefix C-a
# END:prefix
# Free the original Ctrl-b prefix keybinding
# START:unbind
unbind C-b
# END:unbind
#setting the delay between prefix and command
# START:delay
set -sg escape-time 1
# END:delay
# Ensure that we can send Ctrl-A to other apps
# START:bind_prefix
bind C-a send-prefix
# END:bind_prefix
# Set the base index for windows to 1 instead of 0
# START:index
set -g base-index 1
# END:index
# Set the base index for panes to 1 instead of 0
# START:panes_index
#setw -g pane-base-index 1
# END:panes_index
# Reload the file with Prefix r
# START:reload
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# END:reload
# splitting panes
# START:panesplit
bind | split-window -h
bind - split-window -v
# END:panesplit
# moving between panes
# START:paneselect
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# END:paneselect
# Quick pane selection
# START:panetoggle
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# END:panetoggle
# Pane resizing
# START:paneresize
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# END:paneresize
# mouse support - set to on if you want to use the mouse
# START:mouse
setw -g mode-mouse off
# END:mouse
set -g mouse-select-pane off
set -g mouse-resize-pane off
set -g mouse-select-window off
# Set the default terminal mode to 256color mode
# START:termcolor
set -g default-terminal "screen-256color"
# END:termcolor
# aggressive resize on
setw -g aggressive-resize on
# enable activity alerts
#START:activity
setw -g monitor-activity on
set -g visual-activity on
#END:activity
# set the status line's colors
# START:statuscolor
#set -g status-fg white
#set -g status-bg black
# END:statuscolor
# set the color of the window list
# START:windowstatuscolor
#setw -g window-status-fg cyan
#setw -g window-status-bg default
#setw -g window-status-attr dim
# END:windowstatuscolor
# set colors for the active window
# START:activewindowstatuscolor
#setw -g window-status-current-fg white
#setw -g window-status-current-bg red
#setw -g window-status-current-attr bright
# END:activewindowstatuscolor
# pane colors
# START:panecolors
#set -g pane-border-fg green
#set -g pane-border-bg black
#set -g pane-active-border-fg white
#set -g pane-active-border-bg w
# END:panecolors
# Command / message line
# START:cmdlinecolors
#set -g message-fg white
#set -g message-bg black
#set -g message-attr bright
# END:cmdlinecolors
# Status line left side
# START:statusleft
#set -g status-left-length 25
#set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
# END:statusleft
#START:utf8
setw -g utf8 on
set -g status-utf8 on
set-option -ga terminal-overrides ',*:enacs@:smacs@:rmacs@:acsc@'
#END:utf8
# Status line right side
# 15% | 28 Nov 18:15
# START: statusright
#set -g status-right "#(~/battery Discharging) | #[fg=cyan]%d %b %R"
# END:statusright
# Update the status bar every sixty seconds
# START:updateinterval
set -g status-interval 60
# END:updateinterval
# Center the window list
# START:centerwindowlist
set -g status-justify centre
# END:centerwindowlist
# enable vi keys.
# START:vikeys
setw -g mode-keys vi
# END:vikeys
setw -g xterm-keys on
# Open panes in the same directory using the tmux-panes script
# START:tmuxpanes
#unbind v
#unbind h
#bind v send-keys " ~/.tmux/tmux-panes -h" C-m
#bind h send-keys " ~/.tmux/tmux-panes -v" C-m
# END:tmuxpanes
# Maximize and restore a pane
# START:max
unbind Up
bind Up new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp
# END:max
# START:restore
unbind Down
bind Down last-window \; swap-pane -s tmp.1 \; kill-window -t tmp
# END:restore
# Log output to a text file on demand
# START:pipe-pane
bind P pipe-pane -o "cat >>~/#W.log" \; display "Toggled logging to ~/#W.log"
# END:pipe-pane
#################################### MINE #####################################
# Automatically set window title
setw -g automatic-rename
# Left side of status bar
#set -g status-left-length 20
#set -g status-left '[#S:#H]'
set -g status-left-length 60
set-option -g status-left "#(~/.tmux/tmux-powerline/powerline.sh left)"
#set-option -g status-right-length 90
#set-option -g status-right "#(~/.tmux/tmux-powerline/powerline.sh right)"
# Inactive windows in status bar
set-window-option -g window-status-format '#I:#[default]#W#F'
# Current or active window in status bar
set-window-option -g window-status-current-format '#[bold]#I:#W#F'
# Alerted window in status bar. Windows which have an alert (bell, activity or content).
#set-window-option -g window-status-alert-bg white
# Right side of status bar
set -g status-right-length 50
set -g status-right '%Y-%m-%d %H:%M #[fg=blue,bright]| #(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") | #(cut -d " " -f 1-4 /proc/loadavg) '
set -g set-titles-string "tmux:#I #W"
#### COLOUR
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg colour166 #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg colour235
set -g pane-border-bg black
set-option -g pane-active-border-fg white
set -g pane-active-border-bg colouR235
# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
Jump to Line
Something went wrong with that request. Please try again.