We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tmux attach || tmux
In other shells, I would run tmux attach || tmux to resume a tmux session if one exists, or create one if it doesn't.
I crawled the docs and couldn't find an equivalent to this. I read #740 and #1352, but neither of them addressed the OR case.
The text was updated successfully, but these errors were encountered:
you are correct. i don't believe we support it yet, but we want to.
Sorry, something went wrong.
I think a work around is using an if and complete i.e.
if ((tmux attach | complete | get exit_code) == 1) { tmux }
But I agree this functionality would be nice
I started work on this so I'll go ahead and post a draft MR #6374
I've only got some initial parsing done. I've not figured out how to break the commands into conditionally executed blocks.
Semi colon works now like command;command2
command;command2
Yes, but that doesn't provide shortcut semantics so there is not a convenient way to do something like if file exists foo && ./foo.
if file exists foo && ./foo
No branches or pull requests
In other shells, I would run
tmux attach || tmux
to resume a tmux session if one exists, or create one if it doesn't.I crawled the docs and couldn't find an equivalent to this.
I read #740 and #1352, but neither of them addressed the OR case.
The text was updated successfully, but these errors were encountered: