2020-01-11 22:04:45 +01:00
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml:lang = "en" >
< head >
2020-01-11 22:22:46 +01:00
<!-- 2020 - 01 - 11 sam. 22:20 -->
2020-01-11 22:04:45 +01:00
< meta http-equiv = "Content-Type" content = "text/html;charset=utf-8" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > Tmux Configuration< / title >
< meta name = "generator" content = "Org mode" / >
< meta name = "author" content = "Dehaeze Thomas" / >
< style type = "text/css" >
<!-- /* --> <![CDATA[/*> <!-- */
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
< / style >
2020-01-11 22:22:46 +01:00
< link rel = "stylesheet" type = "text/css" href = "./css/htmlize.css" / >
< link rel = "stylesheet" type = "text/css" href = "./css/readtheorg.css" / >
< script type = "text/javascript" src = "./js/jquery.min.js" > < / script >
< script type = "text/javascript" src = "./js/bootstrap.min.js" > < / script >
< script type = "text/javascript" src = "./js/jquery.stickytableheaders.min.js" > < / script >
< script type = "text/javascript" src = "./js/readtheorg.js" > < / script >
2020-01-11 22:04:45 +01:00
< script type = "text/javascript" >
/*
@licstart The following is the entire license notice for the
JavaScript code in this tag.
Copyright (C) 2012-2020 Free Software Foundation, Inc.
The JavaScript code in this tag is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.
@licend The above is the entire license notice
for the JavaScript code in this tag.
*/
<!-- /* --> <![CDATA[/*> <!-- */
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
< / script >
< / head >
< body >
< div id = "org-div-home-and-up" >
< a accesskey = "h" href = "./index.html" > UP < / a >
|
< a accesskey = "H" href = "./index.html" > HOME < / a >
< / div > < div id = "content" >
< h1 class = "title" > Tmux Configuration< / h1 >
< div id = "table-of-contents" >
< h2 > Table of Contents< / h2 >
< div id = "text-table-of-contents" >
< ul >
< li > < a href = "#org7100dc0" > Line< / a > < / li >
< li > < a href = "#orga883317" > Bindings< / a > < / li >
< li > < a href = "#orgbb430a8" > Settings< / a > < / li >
< li > < a href = "#org36a813b" > Plugins< / a >
< ul >
< li > < a href = "#orgf29132d" > Install plugins< / a > < / li >
< li > < a href = "#org281bf63" > Configuration< / a > < / li >
< / ul >
< / li >
< li > < a href = "#org0ea6f8c" > Colors< / a > < / li >
< li > < a href = "#orge798cb7" > Initialize TMUX plugin manager< / a > < / li >
< / ul >
< / div >
< / div >
< div id = "outline-container-org7100dc0" class = "outline-2" >
< h2 id = "org7100dc0" > Line< / h2 >
< div class = "outline-text-2" id = "text-org7100dc0" >
< div class = "org-src-container" >
< pre class = "src src-conf" > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Activate the status bar< / span >
set -g status < span class = "org-string" > "on"< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > default statusbar color< / span >
< span class = "org-variable-name" > set-option -g status-style bg< / span > =colour237,fg=colour223 < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > bg=bg1, fg=fg1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > default window title colors< / span >
< span class = "org-variable-name" > set-window-option -g window-status-style bg< / span > =colour214,fg=colour237 < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > bg=yellow, fg=bg1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > default window with an activity alert< / span >
< span class = "org-variable-name" > set-window-option -g window-status-activity-style bg< / span > =colour237,fg=colour248 < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > bg=bg1, fg=fg3< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > active window title colors< / span >
< span class = "org-variable-name" > set-window-option -g window-status-current-style bg< / span > =red,fg=colour237 < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > fg=bg1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > pane border< / span >
< span class = "org-variable-name" > set-option -g pane-active-border-style fg< / span > =colour250 < span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > fg2< / span >
< span class = "org-variable-name" > set-option -g pane-border-style fg< / span > =colour237 < span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > bg1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > message infos< / span >
< span class = "org-variable-name" > set-option -g message-style bg< / span > =colour239,fg=colour223 < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > bg=bg2, fg=fg1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > writing commands inactive< / span >
< span class = "org-variable-name" > set-option -g message-command-style bg< / span > =colour239,fg=colour223 < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > bg=fg3, fg=bg1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > pane number display< / span >
set-option -g display-panes-active-colour colour250 < span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > fg2< / span >
set-option -g display-panes-colour colour237 < span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > bg1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > clock< / span >
set-window-option -g clock-mode-colour colour109 < span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > blue< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > bell< / span >
< span class = "org-variable-name" > set-window-option -g window-status-bell-style bg< / span > =colour167,fg=colour235 < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > bg=red, fg=bg< / span >
< span class = "org-comment-delimiter" > ## < / span > < span class = "org-comment" > Theme settings mixed with colors (unfortunately, but there is no cleaner way)< / span >
set-option -g status-justify < span class = "org-string" > "left"< / span >
set-option -g status-left-style none
set-option -g status-left-length < span class = "org-string" > "80"< / span >
set-option -g status-right-style none
set-option -g status-right-length < span class = "org-string" > "80"< / span >
set-window-option -g window-status-separator < span class = "org-string" > ""< / span >
set-option -g status-left < span class = "org-string" > "#[fg=colour248, bg=colour241] #S #[fg=colour241, bg=colour237, nobold, noitalics, nounderscore] "< / span >
set-option -g status-right < span class = "org-string" > "#[fg=colour239, bg=colour237, nobold, nounderscore, noitalics] #[fg=colour246,bg=colour239] %Y-%m-%d  %H:%M #[fg=colour248, bg=colour239, nobold, noitalics, nounderscore]#{?client_prefix,#[fg=colour124],} #[fg=colour237, bg=colour248]#{?client_prefix,#[bg=colour124],} #h "< / span >
set-window-option -g window-status-current-format < span class = "org-string" > "#[fg=colour237, bg=colour214, nobold, noitalics, nounderscore] #[fg=colour239, bg=colour214] #I  #[fg=colour239, bg=colour214, bold] #W #[fg=colour214, bg=colour237, nobold, noitalics, nounderscore] "< / span >
set-window-option -g window-status-format < span class = "org-string" > "#[fg=colour237,bg=colour239,noitalics] #[fg=colour223,bg=colour239] #I  #[fg=colour223, bg=colour239] #W #[fg=colour239, bg=colour237, noitalics] "< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orga883317" class = "outline-2" >
< h2 id = "orga883317" > Bindings< / h2 >
< div class = "outline-text-2" id = "text-orga883317" >
< div class = "org-src-container" >
< pre class = "src src-conf" > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Set prefix to 'C-Space'< / span >
unbind C-b
set -g prefix C-Space
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Reload the config using 'C-Space + r'< / span >
bind r source-file ~/.tmux.conf \; display-message < span class = "org-string" > "Config reloaded..."< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Simulate 'C-l' to clear the terminal< / span >
bind C-l send-keys C-l \; clear-history
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Open new panes with the path of the current pane.< / span >
unbind c
bind c new-window -c < span class = "org-string" > '#{pane_current_path}'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Vim-like key bindings for pane navigation (default uses cursor keys).< / span >
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > normally used for last-window< / span >
bind l select-pane -R
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Move Panes< / span >
unbind L
bind L swap-pane -D
unbind H
bind H swap-pane -U
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Resizing (mouse also works).< / span >
unbind Left
bind -r Left resize-pane -L < span class = "org-highlight-numbers-number" > 5< / span >
unbind Right
bind -r Right resize-pane -R < span class = "org-highlight-numbers-number" > 5< / span >
unbind Down
bind -r Down resize-pane -D < span class = "org-highlight-numbers-number" > 5< / span >
unbind Up
bind -r Up resize-pane -U < span class = "org-highlight-numbers-number" > 5< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Fast toggle (normally prefix-l).< / span >
bind ^space last-window
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Intuitive window-splitting keys.< / span >
bind / split-window -h -c < span class = "org-string" > '#{pane_current_path}'< / span > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > normally prefix-%< / span >
bind - split-window -v -c < span class = "org-string" > '#{pane_current_path}'< / span > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > normally prefix-"< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Swap windows< / span >
bind-key -r < span class = "org-string" > "< "< / span > swap-window -t -1
bind-key -r < span class = "org-string" > "> "< / span > swap-window -t +1
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Smart pane switching with awareness of Vim splits< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > See: https://github.com/christoomey/vim-tmux-navigator< / span >
< span class = "org-variable-name" > is_vim< / span > =< span class = "org-string" > "ps -o state= -o comm= -t '#{pane_tty}' \< / span >
< span class = "org-string" > | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"< / span >
bind-key -n C-h if-shell < span class = "org-string" > "$is_vim"< / span > < span class = "org-string" > "send-keys C-h"< / span > < span class = "org-string" > "select-pane -L"< / span >
bind-key -n C-j if-shell < span class = "org-string" > "$is_vim"< / span > < span class = "org-string" > "send-keys C-j"< / span > < span class = "org-string" > "select-pane -D"< / span >
bind-key -n C-k if-shell < span class = "org-string" > "$is_vim"< / span > < span class = "org-string" > "send-keys C-k"< / span > < span class = "org-string" > "select-pane -U"< / span >
bind-key -n C-l if-shell < span class = "org-string" > "$is_vim"< / span > < span class = "org-string" > "send-keys C-l"< / span > < span class = "org-string" > "select-pane -R"< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Set 'C-Space + v' to enter copy-mode< / span >
unbind [
bind-key v copy-mode
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Set 'C-Space + C-v' to paste< / span >
unbind ]
bind-key C-v paste-buffer
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Setup 'v' to begin selection as in Vim and 'y' to yank< / span >
bind-key -T copy-mode-vi < span class = "org-string" > 'v'< / span > send -X begin-selection
bind-key -T copy-mode-vi < span class = "org-string" > 'y'< / span > send -X copy-pipe-and-cancel < span class = "org-string" > "xsel -i -p & & xsel -o -p | xsel -i -b"< / span >
bind-key -T copy-mode-vi < span class = "org-string" > 'Escape'< / span > send -X cancel
bind-key -T copy-mode-vi < span class = "org-string" > 'C-v'< / span > send-keys -X rectangle-toggle
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orgbb430a8" class = "outline-2" >
< h2 id = "orgbb430a8" > Settings< / h2 >
< div class = "outline-text-2" id = "text-orgbb430a8" >
< div class = "org-src-container" >
< pre class = "src src-conf" > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Activity monitoring< / span >
set -g visual-activity off
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Automatically renumber window numbers on closing a pane (tmux > = 1.7).< / span >
set -g renumber-windows on
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Mouse can be used to select panes, select windows (by clicking on the status bar), resize panes< / span >
set -g mouse on
set -g default-terminal < span class = "org-string" > "screen-256color"< / span >
set -ga terminal-overrides < span class = "org-string" > ',xterm-256color:Tc'< / span >
set -g history-limit < span class = "org-highlight-numbers-number" > 262144< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Start window and pane numbering at 1, (0 is too hard to reach)< / span >
set -g base-index < span class = "org-highlight-numbers-number" > 1< / span >
set -g pane-base-index < span class = "org-highlight-numbers-number" > 1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Don't wait for an escape sequence after seeing C-a< / span >
set -s escape-time < span class = "org-highlight-numbers-number" > 0< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Dynamically update iTerm tab and window titles< / span >
set -g set-titles on
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Needed as on tmux 1.9 and up (defaults to off)< / span >
set -g focus-events on
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > But don't change tmux's own window titles< / span >
set-option -g allow-rename off
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Don't wrap searches; it's super confusing given tmux's reverse-ordering of position info in copy mode< / span >
set -w -g wrap-search off
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Restore pre-2.1 behavior of scrolling with the scrollwheel in Vim, less, copy mode etc, otherwise entering copy mode if not already in it.< / span >
bind-key -T root WheelUpPane \
< span class = "org-variable-name" > if-shell -Ft< / span > = < span class = "org-string" > '#{?pane_in_mode,1,#{mouse_any_flag}}'< / span > \
< span class = "org-string" > 'send -Mt='< / span > \
< span class = "org-string" > 'if-shell -Ft= "#{alternate_on}" "send -t= Up" "copy-mode -et="'< / span >
bind-key -T root WheelDownPane \
< span class = "org-variable-name" > if-shell -Ft< / span > = < span class = "org-string" > '#{?pane_in_mode,1,#{mouse_any_flag}}'< / span > \
< span class = "org-string" > 'send -Mt='< / span > \
< span class = "org-string" > 'if-shell -Ft= "#{alternate_on}" "send -t= Down" "send -Mt="'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Stay in copy mode on drag end, but otherwise exit for mouse up.< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Requires patch from https://github.com/tmux/tmux/issues/326< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > unbind-key -t vi-copy MouseDragEnd1Pane< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > bind-key -t vi-copy MouseUp1Pane cancel< / span >
< span class = "org-variable-name" > bind-key -n MouseDrag1Status swap-window -t< / span > =
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > bind-key -n MouseDown3Status new-window -a -t=< / span >
< span class = "org-variable-name" > bind-key -n MouseDrag1Status swap-window -t< / span > =
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > bind-key -n MouseDown3Status new-window -a -t=< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > #T = standard window title (last command, see ~/.bash_profile)< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > #h = short hostname< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > #S = session name< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > #W = tmux window name< / span >
set -g set-titles-string < span class = "org-string" > "#T : #h > #S > #W"< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Show bells in window titles< / span >
< span class = "org-variable-name" > set -g window-status-bell-style fg< / span > =yellow,bold,underscore
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Causes tmux to resize a window based on the smallest client actually viewing it, not on the smallest one attached to the entire session< / span >
set-window-option -g aggressive-resize
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org36a813b" class = "outline-2" >
< h2 id = "org36a813b" > Plugins< / h2 >
< div class = "outline-text-2" id = "text-org36a813b" >
< / div >
< div id = "outline-container-orgf29132d" class = "outline-3" >
< h3 id = "orgf29132d" > Install plugins< / h3 >
< div class = "outline-text-3" id = "text-orgf29132d" >
< div class = "org-src-container" >
< pre class = "src src-conf" > set -g @plugin < span class = "org-string" > 'tmux-plugins/tpm'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > set -g @plugin 'tmux-plugins/tmux-sessionist'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > set -g @plugin 'tmux-plugins/tmux-resurrect'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > set -g @plugin 'tmux-plugins/tmux-continuum'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > set -g @plugin 'tmux-plugins/tmux-battery'< / span >
set -g @plugin < span class = "org-string" > 'nhdaly/tmux-better-mouse-mode'< / span >
set -g @plugin < span class = "org-string" > 'seebi/tmux-colors-solarized'< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org281bf63" class = "outline-3" >
< h3 id = "org281bf63" > Configuration< / h3 >
< div class = "outline-text-3" id = "text-org281bf63" >
< div class="org-src-container">
< pre class = "src src-conf" > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > tmux-resurrect< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > for vim< / span >
set -g @resurrect-strategy-vim < span class = "org-string" > 'session'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > for neovim< / span >
set -g @resurrect-strategy-nvim < span class = "org-string" > 'session'< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Restoring pane contents< / span >
set -g @resurrect-capture-pane-contents < span class = "org-string" > 'on'< / span >
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > tmux-continuum< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
set -g @continuum-boot < span class = "org-string" > 'on'< / span >
set -g @continuum-boot-options < span class = "org-string" > 'iterm,fullscreen'< / span >
set -g @continuum-save-interval < span class = "org-string" > '15'< / span >
run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > tmux-battery< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
set -g @batt_charged_icon < span class = "org-string" > "="< / span >
set -g @batt_charging_icon < span class = "org-string" > "+"< / span >
set -g @batt_discharging_icon < span class = "org-string" > "-"< / span >
set -g @batt_attached_icon < span class = "org-string" > "o"< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-org0ea6f8c" class = "outline-2" >
< h2 id = "org0ea6f8c" > Colors< / h2 >
< div class = "outline-text-2" id = "text-org0ea6f8c" >
< div class = "org-src-container" >
< pre class = "src src-conf" > set -g @colors-solarized < span class = "org-string" > 'light'< / span >
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-orge798cb7" class = "outline-2" >
< h2 id = "orge798cb7" > Initialize TMUX plugin manager< / h2 >
< div class = "outline-text-2" id = "text-orge798cb7" >
< div class = "org-src-container" >
< pre class = "src src-conf" > run < span class = "org-string" > '~/.tmux/plugins/tpm/tpm'< / span >
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2020-01-11 22:22:46 +01:00
< p class = "date" > Created: 2020-01-11 sam. 22:20< / p >
2020-01-11 22:04:45 +01:00
< / div >
< / body >
< / html >