From e1096db47d332f2e4bfb4f38d262bb94e69d9ad5 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 13 Dec 2021 17:23:42 -0500 Subject: set exec and stuff --- bin/tmcg | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 bin/tmcg (limited to 'bin/tmcg') diff --git a/bin/tmcg b/bin/tmcg deleted file mode 100755 index d94abbc..0000000 --- a/bin/tmcg +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -current_session () { - tty=$(tty) - for s in $(tmux list-sessions -F '#{session_name}'); do - tmux list-panes -F '#{pane_tty} #{session_name}' -t "$s" - done | grep "${tty}" | awk '{print $2}' -} - -SESSION=$(current_session) - -if [ "x${SESSION}" = "x" ]; then - SESSION="irc" - tmux new-session -s "${SESSION}" -d -fi - -if ! tmux switch -t ${SESSION}:catgirl >/dev/null 2>&1; then - tmux new-window -c '~' -n catgirl catgirl libera - tmux split-window -t ${SESSION}:catgirl -c '~' catgirl oftc - tmux split-window -t ${SESSION}:catgirl -c '~' catgirl sdf - tmux split-window -t ${SESSION}:catgirl -c '~' catgirl tilde - tmux set-option -t ${SESSION}:catgirl remain-on-exit on - tmux selectl -t ${SESSION}:catgirl tiled -fi -- cgit v1.2.3