commit 80ef9a0d0a888661a57251bd9d128b000e3987e3
parent 79344c1c103be77f3ceb186832fbe43284ed567a
Author: Anders Damsgaard <andersd@riseup.net>
Date: Sun, 5 Nov 2017 09:52:05 -0500
use consistent comment offset
Diffstat:
1 file changed, 24 insertions(+), 23 deletions(-)
diff --git a/links/.tmux.conf b/links/.tmux.conf
@@ -1,21 +1,22 @@
### GENERAL
-set-option -g prefix C-a # Set prefix to <C-a>
-bind-key a send-prefix # Send <C-a> with <C-a>a
+set-option -g prefix C-a # Set prefix to <C-a>
+bind-key a send-prefix # Send <C-a> with <C-a>a
bind R source-file ~/.tmux.conf \; display "~/.tmux.conf reloaded"
-set -g history-limit 10000 # lines to keep in hisoty
-set-option -g display-panes-time 3000 # Timeout for pane-numbering in ms
-set-option -sg escape-time 0 # speed up commands
-set -g mouse on # enable mouse (tmux 2.1+)
-set -g base-index 1 # start window numbering at 1
-set -g pane-base-index 1 # start pane numbering at 1
-set -g renumber-windows on # renumber windows when a window is closed
-setw -g automatic-rename on # rename window after process
+set -g history-limit 10000 # lines to keep in hisoty
+set-option -g display-panes-time 3000 # Timeout for pane-numbering in ms
+set-option -sg escape-time 0 # speed up commands
+set -g mouse on # enable mouse (tmux 2.1+)
+set -g base-index 1 # start window numbering at 1
+set -g pane-base-index 1 # start pane numbering at 1
+set -g renumber-windows on # renumber windows when a window is closed
+setw -g automatic-rename on # rename window after process
#### APPEARANCE
+
set -g default-terminal "screen-256color" # use 256 colors
setw -g aggressive-resize on # resize window to smallest client
@@ -52,14 +53,14 @@ set -g status-right-length 40
#### NAVIGATION
-bind -r h select-pane -L # navigate left with <C-a>h
-bind -r j select-pane -D # navigate down with <C-a>j
-bind -r k select-pane -U # navigate up with <C-a>k
-bind -r l select-pane -R # navigate right with <C-a>l
-bind -r H resize-pane -L 5 # resize pane left with <C-a>H
-bind -r J resize-pane -D 5 # resize pane down with <C-a>J
-bind -r K resize-pane -U 5 # resize pane up with <C-a>K
-bind -r L resize-pane -R 5 # resize pane right with <C-a>L
+bind -r h select-pane -L # navigate left with <C-a>h
+bind -r j select-pane -D # navigate down with <C-a>j
+bind -r k select-pane -U # navigate up with <C-a>k
+bind -r l select-pane -R # navigate right with <C-a>l
+bind -r H resize-pane -L 5 # resize pane left with <C-a>H
+bind -r J resize-pane -D 5 # resize pane down with <C-a>J
+bind -r K resize-pane -U 5 # resize pane up with <C-a>K
+bind -r L resize-pane -R 5 # resize pane right with <C-a>L
# Smart pane switching with awareness of vim splits
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)n?vim(diff)?$|emacs.*$' && tmux send-keys C-h) || tmux select-pane -L"
@@ -67,12 +68,12 @@ bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)n?vim(diff)?$|emacs.*$' && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)n?vim(diff)?$|emacs.*$' && tmux send-keys C-l) || tmux select-pane -R"
-bind-key C-s last-window # go to last window with <C-a><C-s>
-bind-key C-a last-pane # go to last pane with <C-a><C-a>
-bind-key -r n next-window # next window with <C-a>n
+bind-key C-s last-window # go to last window with <C-a><C-s>
+bind-key C-a last-pane # go to last pane with <C-a><C-a>
+bind-key -r n next-window # next window with <C-a>n
-#### LAYOUT BINDINGS
+#### LAYOUT CHANGING BINDINGS
# create panes in same directory
bind-key '"' split-window -c "#{pane_current_path}"
@@ -88,7 +89,7 @@ bind-key -r r rotate-window # rotate panes with <C-a>r
# enable reattach-to-user-namespace which fixes pasteboard access and launchctl
if-shell 'uname | grep -qi Darwin' 'set-option -g default-command "reattach-to-user-namespace -l zsh"'
-bind Space copy-mode # enter copy mode with <C-a><Space>
+bind Space copy-mode # enter copy mode with <C-a><Space>
bind-key -T copy-mode-vi v send-keys -X begin-selection # start "visual" with v
# Copy (yank) with y