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

Bash completion missing from repo and docs #166

Closed
dentuzhik opened this issue Jun 2, 2016 · 8 comments
Closed

Bash completion missing from repo and docs #166

dentuzhik opened this issue Jun 2, 2016 · 8 comments

Comments

@dentuzhik
Copy link

@dentuzhik dentuzhik commented Jun 2, 2016

I can't find the file (tmuxp.bash), and link in the docs also missing.
Any other ways I can setup completion?

@tony
Copy link
Member

@tony tony commented Jun 2, 2016

We can add it back. We switched from argparse to click in 1.1.

Which completions did you use?

Do you load your sessions via project directories (.tmuxp.yaml, .tmuxp.json) or via ~/.tmuxp/?

@tony
Copy link
Member

@tony tony commented Jun 2, 2016

eval "$(_TMUXP_COMPLETE=source tmuxp)"

Does that work?

tony added a commit that referenced this issue Jun 2, 2016
@dentuzhik
Copy link
Author

@dentuzhik dentuzhik commented Jun 2, 2016

Yep, it works, thanks! Added this to my dotfiles:

if [[ -n $(which tmuxp) ]]; then
    eval "$(_TMUXP_COMPLETE=source tmuxp)"
fi
@tony
Copy link
Member

@tony tony commented Jun 2, 2016

That snippet is nice @dentuzhik , what to make a PR to add it cli.rst?

@dentuzhik
Copy link
Author

@dentuzhik dentuzhik commented Jun 3, 2016

Yep, will do that shortly

@dentuzhik dentuzhik closed this Jun 26, 2016
@tony
Copy link
Member

@tony tony commented Jun 26, 2016

@dentuzhik do you still want to make a PR for this ?

https://github.com/tony/tmuxp/edit/master/doc/cli.rst

@dentuzhik
Copy link
Author

@dentuzhik dentuzhik commented Jun 26, 2016

I can do this, but as far as I can see you've already added a section about the completions :)
https://github.com/tony/tmuxp/blob/master/doc/cli.rst#completion

@tony
Copy link
Member

@tony tony commented Jun 26, 2016

@dentuzhik You can wrap the if statement :)

oliverralbertini added a commit to oliverralbertini/tmuxp that referenced this issue Nov 11, 2018
Was discussed in this issue: tmux-python#166
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants