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 d622733df2d4b215a3deb736c5d4f1f36196f089
parent 62a72e09b7663ef0025eb4efd99700148825b4a3
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 20 May 2020 13:15:32 +0200

Remove old helper functions for creating tmux panes/windows in current path

OpenBSD tmux(1) now supports #{pane_current_path}

Diffstat:
M.profile | 19-------------------
M.tmux.conf | 3---
2 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/.profile b/.profile @@ -106,25 +106,6 @@ alias date-uk='TZ=Europe/London date' alias date-israel='TZ=Israel date' alias now="plumb https://imgs.xkcd.com/comics/now.png" -ts() { - if [ -z "$TMUX" ]; then - echo "error: not in tmux session" >&2 - return 1 - fi - for i in $(jot "${2:-1}"); do - if [ $# -eq 0 ] || [ "$1" = "l" ]; then - tmux split-pane -h -c "$PWD" - elif [ "$1" = "j" ]; then - tmux split-pane -v -c "$PWD" - elif [ "$1" = "w" ]; then - tmux new-window -c "$PWD" - else - echo "error: split direction not understood" >&2 - return 2 - fi - done -} - hurlo() { out="${1##*/}" [ -z "$out" ] && out="hurl_out" diff --git a/.tmux.conf b/.tmux.conf @@ -86,9 +86,6 @@ 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 v send-keys "tmux split-window -v -c \"$(pwd)\"" C-m -bind C send-keys "tmux new-window -c \"$(pwd)\"" C-m bind W break-pane