dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 52bec3503db41d7e3999186377434e6cfe4f56c1
parent 48c71a173715508c292e91ebfb500499ac559cba
Author: Duncaen <mail@duncano.de>
Date:   Thu, 28 Sep 2017 01:00:07 +0000

tmux: add configuration

Diffstat:
install.sh | 6++++++
tmux.conf | 47+++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/install.sh b/install.sh @@ -103,6 +103,11 @@ _firefox() { _ln_home "userChrome.css" ".mozilla/firefox/$p/chrome/userChrome.css" done } +_tmux() { + [ -n "$(command -v tmux 2>/dev/null)" ] || return + msg "INSTALL" "tmux config" + _ln_home "tmux.conf" ".tmux.conf" +} : ${PWD:=$(pwd)} : ${HOME:=~} @@ -121,3 +126,4 @@ _void _ssh _gtk _firefox +_tmux diff --git a/tmux.conf b/tmux.conf @@ -0,0 +1,47 @@ +# .tmux.conf +# 31jan2010 +chris+ +# 30mar2016 +chris+ cleanup +# 28sep2017 +duncan+ imported + +# general +set -g base-index 1 +set -g history-limit 5000 +# don't spawn login shells +set -g default-command "$SHELL" +set -g terminal-overrides "rxvt-unicode-256color:sitm@" +set -ag update-environment " GNOME_KEYRING_PID GNOME_KEYRING_SOCKET" +setw -g aggressive-resize on + +# style +set -g status-style fg=white,bg=black +setw -g window-status-current-style bold +set -g message-style fg=white,bg=black,bold +set -g pane-active-border-style fg=default,bg=default +set -g status-interval 0 +set -g status-right-length 0 +set -g set-titles on +set -g set-titles-string "#H: #W" + +# screen-like things +set -g prefix ^A +bind C-a last-window +bind a send-prefix +bind M-a next-window -a +bind c new-window -c ~ +bind k confirm-before -p "kill-window #W? (y/n)" kill-window +bind K kill-window +bind S split-window + +# custom bindings +bind 0 select-window -T -t ':.$' +bind C move-window -r +bind R source-file ~/.tmux.conf +bind h split-window -h +bind v split-window +bind . neww -c '#{pane_current_path}' +bind ^R neww rc + +bind -n C-left previous-window +bind -n C-right next-window + +bind -n M-PPage copy-mode -u