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

Add shell completions by shtab #360

Closed
wants to merge 1 commit into from
Closed

Add shell completions by shtab #360

wants to merge 1 commit into from

Conversation

Freed-Wu
Copy link
Contributor

@Freed-Wu Freed-Wu commented Sep 19, 2022

mdformat --print-completion bash | sudo tee /usr/share/bash-completion/completions/mdformat
mdformat --print-completion zsh | sudo tee /usr/share/zsh/site-functions/_mdformat
mdformat --print-completion tcsh | sudo tee /etc/profile.d/mdformat.completion.csh
❯ mdformat --<TAB>
option
--check              do not apply changes to files
--end-of-line        output file line ending mode (default: lf)
--help               show this help message and exit
-h                   show this help message and exit
--number             apply consecutive numbering to ordered lists
--print-completion   print shell completion script
--version            show program's version number and exit
--wrap               paragraph word wrap mode (default: keep)
❯ mdformat --end-of-line <TAB>
end_of_line
crlf  keep  lf

@welcome
Copy link

welcome bot commented Sep 19, 2022

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.

Welcome to the EBP community! 🎉

mdformat --print-completion bash | sudo tee /usr/share/bash-completion/completions/mdformat
mdformat --print-completion zsh | sudo tee /usr/share/zsh/site-functions/_mdformat
mdformat --print-completion tcsh | sudo tee /etc/profile.d/mdformat.completion.csh
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.

1 participant