Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tmux-sessionizer #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stefanlogue
Copy link

Tmux doesn't need to be currently attached if running in the background, will not show no current client error

Tmux doesn't need to be currently attached if running in the background, will not show `no current client` error
Copy link

@trimclain trimclain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use the -A option instead:

if [[ -z $TMUX ]]; then
    tmux new-session -A -s "$selected_name" -c "$selected"
    exit 0
fi

From tmux manpage:

The -A flag makes new-session behave like attach-session if session-name already exists

@trimclain
Copy link

Apparently duplicate to #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants