From 15dc3e9f6beff8b40ef67e9545462924cb1581c6 Mon Sep 17 00:00:00 2001 From: masterzu Date: Mon, 14 May 2018 17:10:00 +0200 Subject: [PATCH] .tmux.conf: add split --- .tmux.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index a6fb388..4e099db 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,10 +1,11 @@ ## pcht tmux configurarion # (c) 2018 -# change prefix to ctrl+a +# change prefix to ctrl+a and +# use "C-a a"to send C-a to shell unbind C-b set -g prefix C-a -bind C-a send-prefix +bind a send-prefix # disable login-shell on tmux # https://wiki.archlinux.org/index.php/Tmux#Start_a_non-login_shell @@ -13,7 +14,9 @@ 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 s split-window -c "#{pane_current_path}" bind % split-window -h -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