basictmuxconf


basictmuxconf


# .tmux.conf of deanbodenham, based on others (see below)
# last modified: 1 November 2017
# Using tmux 2.6, after 18 Oct 2015
#
## This tmux.conf is based on:
#check out this page for a tmux conf (basis for this one):
#http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
#
#thanks to dothebarbwa
#https://www.reddit.com/r/unixporn/comments/3cn5gi/tmux_is_my_wm_on_os_x/
#with my own modifications
#
#Remember: prefix-? shows all keybindings
#Priority: prefix key and reloading tmux.conf:
#-------------------------------------------------------#
#change prefix from C-b to C-a
unbind C-b
set -g prefix C-a
#bind C-a C-a to 'home', or start of line, which was C-a previously
bind C-a send-prefix
#reload tmux.conf message
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
#-------------------------------------------------------#

#Pane navigation non-standard because of resizing pane prefix-L
#-------------------------------------------------------#
bind -r b previous-window
bind -r n next-window
bind -r p last-window
#-------------------------------------------------------#

#Terminal admin:
#-------------------------------------------------------#
#set mouse off/on - if off, forces you to use keyboard with prefix-[
#set -g mouse off
set -g mouse on
#256 colours
set -g default-terminal "screen-256color"
# start with window 1 (instead of 0)
set -g base-index 1
# start with pane 1
set -g pane-base-index 1
# use vi mode - not sure what these do...
setw -g mode-keys vi
set -g status-keys vi
#setw -g utf8 on
#set -g status-utf8 on
#-------------------------------------------------------#
#PANE COLOURS
#-------------------------------------------------------#
# set inactive/active window styles
set -g window-style 'fg=colour247,bg=colour236'
set -g window-active-style 'fg=colour250,bg=black'
#pane border
set -g pane-border-bg colour235
set -g pane-border-fg colour238
set -g pane-active-border-bg colour236
set -g pane-active-border-fg colour51
#-------------------------------------------------------#

#-------------------------------------------------------#
#PANE NAVIGATION/MANAGEMENT
#-------------------------------------------------------#
# splitting panes
#bind \ split-window -h
#bind - split-window -v
bind \ split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
# open new panes in current path
bind c new-window -c '#{pane_current_path}'
# Use Alt-arrow keys WITHOUT PREFIX KEY to switch panes
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
#Resizing panes:
bind -r j resize-pane -D 2
bind -r k resize-pane -U 2
bind -r h resize-pane -L 2
bind -r l resize-pane -R 2
#-------------------------------------------------------#

#-------------------------------------------------------#
#Pane copy/pasting
#http://jasonwryan.com/blog/2011/06/07/copy-and-paste-in-tmux/
#-------------------------------------------------------#
#unbind [
#bind Escape copy-mode
bind C-v paste-buffer
#bind-key -t vi-copy 'v' begin-selection
#bind-key -t vi-copy 'y' copy-selection
#-------------------------------------------------------#


#-------------------------------------------------------#
#Setting escape time delay to be smaller
#to make tmux more responsive to commands
#-------------------------------------------------------#
set -s escape-time 1
#-------------------------------------------------------#


#-------------------------------------------------------#
##STATUS LINE/MESSAGES AT BOTTOM
#-------------------------------------------------------#
# Set background of status line to black
#-------------------------------------------------------#
#set -g status-bg blue
set -g status-bg black

#Colours for messages
#-------------------------------------------------------#
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
#Show reloaded message in bright white
set -g message-fg white
set -g message-bg default
set -g message-attr bright
#-------------------------------------------------------#


# Status line left side
#-------------------------------------------------------#
# Session: 0 1 1 settings
set -g status-left-length 40
set -g status-left "#[fg=colour245] #S #[fg=colour84]#I #[fg=colour75]#P"
#-------------------------------------------------------#

#Window/pane type in centre
#-------------------------------------------------------#
#move bash* to centre
set -g status-justify centre
# set the color of the window list
# The name of the pane
setw -g window-status-fg colour75
setw -g window-status-bg default
setw -g window-status-attr dim
#-------------------------------------------------------#

#Time and date on right-hand side
#-------------------------------------------------------#
# Status line right side
# 15% | 28 Nov 18:15
# e.g. 28 Nov 18:15
set -g status-right "#[fg=colour245]%d %b #[fg=colour256] %R"
# Update the status bar every sixty seconds
# For the time
set -g status-interval 60
#-------------------------------------------------------#

#-------------------------------------------------------#
#End of status line messages
#-------------------------------------------------------#

### End of tmux.conf
### Basic Version 1 November 2017


Содержание