typer
typer copied to clipboard
🐛 Fix `zsh` autocompletion
I ran into issues installing completiong from a typer-enhanced program. Here are two fixes:
- Don't set the completion style. This overrides user styling globally and is a purely personal, cosmetic preference.
- Adjust the order of lines inserted into
.zshrc.compinitmust be run afterfpathis adjusted, for new completions to be loaded.
I tested this logic with my current zsh (using oh-my-zsh) and with a bare zshrc, and it works in both cases.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
c3a4c72) to head (903b2a8). Report is 230 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #237 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 242 242
Lines 4508 4507 -1
=========================================
- Hits 4508 4507 -1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I was having problems with autocompletion on zsh (oh-my-zsh), and these changes fixed it.