dotfiles

My opinionated dotfiles
git clone git://git.erethon.com/dotfiles
Log | Files | Refs

commit 0a7776a6bf46c665b5cd16bcd8ba553f656712d0
parent fbd70cd500a0b673a30ccd2cd85944d2252060b2
Author: Dionysis Grigoropoulos <info@erethon.com>
Date:   Thu, 13 Nov 2014 00:01:31 +0200

tmux: Restructure tmux.conf to be more readable

Diffstat:
.tmux.conf | 58++++++++++++++++++++++++++++++----------------------------
1 file changed, 30 insertions(+), 28 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -1,3 +1,4 @@ +##################### Bindings ##################### # Use C-a as bind-key unbind C-b set -g prefix C-a @@ -5,29 +6,12 @@ set -g prefix C-a # Use C-a a for nested tmux sessions bind-key a send-prefix -# Vi bindings :D -setw -g mode-keys vi - -# Rename terminals -set -g set-titles on -set -g set-titles-string '#(whoami)@#h -- #S' +# Use C-a C-a to go to last active window +bind-key C-a last-window # Shortcut to reload tmux config file bind r source-file ~/.tmux.conf -# Status bar customization -set -g status-utf8 on -set -g status-bg colour241 -set -g status-fg white -set -g status-interval 60 -set -g status-left-length 90 -set -g status-right-length 60 -set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=yellow]#h" -set -g status-justify left -set -g status-right 'Session: #[fg=Cyan]#S - #[fg=white]Uptime:#[fg=Cyan]\ -#(uptime | cut -d" " -f 4-5 | tr -d ,) - #[fg=white]Date: #[fg=Cyan]%a %d \ -%b %R' - # Pane navigation based on vi's hjkl unbind-key j bind-key -r j select-pane -D @@ -38,13 +22,6 @@ bind-key -r h select-pane -L unbind-key l bind-key -r l select-pane -R -# Set TERM to screen-256color -set -g default-terminal "screen-256color" - -# Start counting windows/panes from 1 and not 0 -set -g base-index 1 -set -g pane-base-index 1 - # Vim-like pane resizing bind-key -r '=' resize-pane -U 5 bind-key -r '-' resize-pane -D 5 @@ -61,5 +38,30 @@ bind-key "'" split-window -h bind-key -t vi-copy 'v' begin-selection bind -t vi-copy y copy-pipe 'xclip -in > /dev/null' -# Use C-a C-a to go to last active window -bind-key C-a last-window +##################### Settings ##################### +# Vi bindings :D +setw -g mode-keys vi + +# Rename terminals +set -g set-titles on +set -g set-titles-string '#(whoami)@#h -- #S' + +# Status bar customization +set -g status-utf8 on +set -g status-bg colour241 +set -g status-fg white +set -g status-interval 60 +set -g status-left-length 90 +set -g status-right-length 60 +set -g status-left "#[fg=Green]#(whoami)#[fg=white]::#[fg=yellow]#h" +set -g status-justify left +set -g status-right 'Session: #[fg=Cyan]#S - #[fg=white]Uptime:#[fg=Cyan]\ +#(uptime | cut -d" " -f 4-5 | tr -d ,) - #[fg=white]Date: #[fg=Cyan]%a %d \ +%b %R' + +# Set TERM to screen-256color +set -g default-terminal "screen-256color" + +# Start counting windows/panes from 1 and not 0 +set -g base-index 1 +set -g pane-base-index 1