dotfiles

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

commit fbd70cd500a0b673a30ccd2cd85944d2252060b2
parent a4dc15d29e61fd14e8880abafffe558178d5c28c
Author: Dionysis Grigoropoulos <info@erethon.com>
Date:   Wed, 12 Nov 2014 23:51:01 +0200

tmux: Small tweaks

* Use "C-a a" as send-prefix
* Copy to clipboard with 'y' using xclip
* Use "C-a C-a" to go to last active window

Diffstat:
.tmux.conf | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -1,7 +1,9 @@ -# Use screen bindings +# Use C-a as bind-key unbind C-b set -g prefix C-a -bind C-a send-prefix + +# Use C-a a for nested tmux sessions +bind-key a send-prefix # Vi bindings :D setw -g mode-keys vi @@ -57,4 +59,7 @@ bind-key "'" split-window -h # Use 'v' and 'y' to select and copy text bind-key -t vi-copy 'v' begin-selection -bind-key -t vi-copy 'y' copy-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