From ca016c72a26eb7ad71e5c2c46fa6ff0719257ab8 Mon Sep 17 00:00:00 2001 From: masterzu Date: Thu, 15 Mar 2018 11:39:19 +0100 Subject: [PATCH] add .tmux.conf --- .tmux.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .tmux.conf diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..a6fb388 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,24 @@ +## pcht tmux configurarion +# (c) 2018 + +# change prefix to ctrl+a +unbind C-b +set -g prefix C-a +bind C-a send-prefix + +# disable login-shell on tmux +# https://wiki.archlinux.org/index.php/Tmux#Start_a_non-login_shell +set -g default-command "${SHELL}" + +# open pane/window in same directory +# https://unix.stackexchange.com/questions/12032/create-new-window-with-current-directory-in-tmux +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" +bind c new-window -c "#{pane_current_path}" + +# last pane like in screen +bind C-a last-pane + +# reload this file +bind r source-file /home/patrick/.tmux.conf \; display-message ".tmux.conf reloaded" +