Skip to content

Add shell completions by shtab#360

Closed
Freed-Wu wants to merge 1 commit intohukkin:masterfrom
Freed-Wu:master
Closed

Add shell completions by shtab#360
Freed-Wu wants to merge 1 commit intohukkin:masterfrom
Freed-Wu:master

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