mdformat icon indicating copy to clipboard operation
mdformat copied to clipboard

Add shell completions by shtab

Open Freed-Wu opened this issue 3 years ago • 1 comments

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

Freed-Wu avatar Sep 19 '22 10:09 Freed-Wu

Thanks for submitting your first pull request! You are awesome! :hugs:
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! :tada:

welcome[bot] avatar Sep 19 '22 10:09 welcome[bot]