17 lines
508 B
Bash
Executable File
17 lines
508 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if ! tmux has-session -t td-cli 2>/dev/null; then
|
|
tmux new-session -d -s td-cli /home/omnissiah/installs/scripts/td
|
|
fi
|
|
# tmux set-environment -g TD_TASK_DIR /home/omnissiah/git/tasks/
|
|
# tmux new -s popup /home/omnissiah/installs/scripts/td
|
|
#
|
|
#
|
|
if [ "$(tmux display-message -p -F "#{session_name}")" = "td-cli" ]; then
|
|
# doesnt work
|
|
tmux display-popup -C
|
|
else
|
|
# Display the popup with the 'td-cli' session
|
|
tmux display-popup -d -E -w90% -h90% 'tmux attach-session -t td-cli; echo 1'
|
|
fi
|