Skip to content

Bash completion missing from repo and docs #166

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

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

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 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 commented Jun 2, 2016

eval "$(_TMUXP_COMPLETE=source tmuxp)"

Does that work?

@dentuzhik
Copy link
Author

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 commented Jun 2, 2016

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

@dentuzhik
Copy link
Author

Yep, will do that shortly

@tony
Copy link
Member

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

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 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
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

No branches or pull requests

2 participants