From 017834d769dbcb6cbbc2a6f846731c0743e696dc Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Thu, 14 Sep 2017 13:29:13 +0200 Subject: [PATCH] Initial commit --- README.md | 6 ++++++ config | 29 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 README.md create mode 100644 config diff --git a/README.md b/README.md new file mode 100644 index 0000000..e0d4ec7 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +Tmux configuration +================== + +1/ clone repo : ```git clone https://github.com/xlogerais/tmux-config``` +2/ make symlink : ```ln -sf $HOME/.tmux/config $HOME/.tmux.conf``` +3/ Enjoy... diff --git a/config b/config new file mode 100644 index 0000000..de7b7bd --- /dev/null +++ b/config @@ -0,0 +1,29 @@ +# Set history size +set -g history-limit 10000 + +# Force terminal for 256 colors support +set -g default-terminal "screen-256color" + +# Display titles +set -g set-titles on +set -g set-titles-string "#T" + +# Make splitting more intuitive +unbind % +bind | split-window -h +bind _ split-window -v + +# Keybindings +bind -n S-up new-window +bind -n S-down new-window + +bind -n C-left prev +bind -n C-right next + +bind -n S-left swap-window -t -1 +bind -n S-right swap-window -t +1 + +bind z resize-pane -Z + +# Mouse +set -g mouse on