Command to open tmux in new session and name session to working dir #1723
Hackman78
started this conversation in
Show and tell
Replies: 1 comment 4 replies
-
|
Something like this? map T ${{
if tmux has-session -t $id 2>/dev/null; then
notify-send "Session already exists"
tmux attach-session -t $SESSION_NAME
else
notify-send "Creating new session"
tmux new-session -s $id
fi
}} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It's not much but it's honest work. Next I want to write one where it checks if i have a curr tmux session open and opens it if exists. If anybody has any ideas lmk
Beta Was this translation helpful? Give feedback.
All reactions