diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-08-17 10:47:23 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-08-17 10:47:23 -0400 |
| commit | 186c8bfebd029d47e4984ed0735668509a2cef84 (patch) | |
| tree | 5bd4549bcbe13dd61b578d67e7111f256d83456f /executables | |
| parent | Add auto-detection of tmux files as tmux file types (diff) | |
| download | dotfiles-186c8bfebd029d47e4984ed0735668509a2cef84.zip | |
Adjust tmux config to create new windows in same dir and use toggle term
Diffstat (limited to 'executables')
| -rwxr-xr-x | executables/bin/tmux-toggle-term | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/executables/bin/tmux-toggle-term b/executables/bin/tmux-toggle-term deleted file mode 100755 index 6d6cbd7..0000000 --- a/executables/bin/tmux-toggle-term +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash -set -uo pipefail - -FLOAT_TERM="${1:-}" -LIST_PANES="$(tmux list-panes -F '#F')" -PANE_ZOOMED="$(echo "${LIST_PANES}" | grep Z)" -PANE_COUNT="$(echo "${LIST_PANES}" | wc -l | bc)" - -if [ -n "${FLOAT_TERM}" ]; then - if [ "$(tmux display-message -p -F "#{session_name}")" = "popup" ]; then - tmux detach-client - else - tmux popup -d '#{pane_current_path}' -xC -yC -w90% -h80% -E "tmux attach -t popup || tmux new -s popup" - fi -else - if [ "${PANE_COUNT}" = 1 ]; then - tmux split-window -c "#{pane_current_path}" - elif [ -n "${PANE_ZOOMED}" ]; then - tmux select-pane -t:.- - else - tmux resize-pane -Z -t1 - fi -fi |