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 754881225bd27f2c05920b5c45f6e32fdfe6fab5
parent 614172f5c21a7a8025c182cd97b08d8783bc1ff1
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 13 Dec 2019 09:44:03 +0100

Change tmux splitting bindings

Diffstat:
M.profile | 4++--
M.tmux.conf | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.profile b/.profile @@ -112,9 +112,9 @@ tsplit() { return 1 fi if [ $# -gt 0 ]; then - if [ "$1" = "v" ]; then + if [ "$1" = "j" ]; then tmux split-pane -v -c "$PWD" - elif [ "$1" = "h" ]; then + elif [ "$1" = "l" ]; then tmux split-pane -h -c "$PWD" elif [ "$1" = "w" ]; then tmux new-window -c "$PWD" diff --git a/.tmux.conf b/.tmux.conf @@ -86,6 +86,7 @@ bind -n -r M-b previous-window # previous window with <M-n> 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 v send-keys "tmux split-window -v -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