dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit d9eb14959a2a6e9fa6d657a63278a8b261e10d22
parent db9b6e7a2ae172ea9c08b03447e9c72316d9991c
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 26 Nov 2019 21:49:57 +0100

Add binds to open new window or split in current dir

Diffstat:
M.tmux.conf | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -1,5 +1,4 @@ - -## GENERAL +# GENERAL set-option -g prefix C-a # Set prefix to <C-a> bind a send-prefix # Send <C-a> with <C-a>a @@ -86,6 +85,8 @@ bind -n -r M-b previous-window # previous window with <M-n> # create panes in same directory bind '"' split-window -c "#{pane_current_path}" bind '%' split-window -h -c "#{pane_current_path}" +bind c send-keys "tmux split-window -h -c \"$(pwd)\"" C-m +bind C send-keys "tmux new-window -c \"$(pwd)\"" C-m bind -r z resize-pane -Z # toggle pane zoom with <C-a>z bind -r y next-layout # cycle to next pane layout with <C-a>y @@ -139,3 +140,4 @@ bind -Tmpd r display "#(mpc clear && mpc ls | mpc add && mpc random on && mpc pl # Change to the previous pane, repeat the last command, change back bind ! last-pane \; send-keys "fc -s" C-m \; last-pane +