diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-04-13 15:01:38 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-04-13 15:01:38 -0500 |
commit | 5e45ccbb58a1a1f1a2b025de2192ec0efe2f69b3 (patch) | |
tree | e699fc44bf9f9f7fa1bf332c64bb7ab3ceb36c34 /tmux/.local/bin/tm | |
parent | 5f8553132579520c33ec940cb8e56c752c58e272 (diff) |
feat: add tmux-sessions
Diffstat (limited to 'tmux/.local/bin/tm')
-rwxr-xr-x | tmux/.local/bin/tm | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tmux/.local/bin/tm b/tmux/.local/bin/tm deleted file mode 100755 index 5c976d3..0000000 --- a/tmux/.local/bin/tm +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -[[ -n "$TMUX" ]] && change="switch-client" || change="attach-session" -session=$( - tmux list-sessions -F "#{session_name}" 2>/dev/null | - sed "/^$(tmux display-message -p '#S' 2>/dev/null)$/d" | - fzf --query="$1" --select-1 --exit-0 -) && - tmux $change -t "$session" || - ( - tmux new-session -d -s $session && - tmux $change -t "$session" - ) |