typer icon indicating copy to clipboard operation
typer copied to clipboard

🐛 Fix `zsh` autocompletion

Open alexjurkiewicz opened this issue 5 years ago • 2 comments

I ran into issues installing completiong from a typer-enhanced program. Here are two fixes:

  1. Don't set the completion style. This overrides user styling globally and is a purely personal, cosmetic preference.
  2. Adjust the order of lines inserted into .zshrc. compinit must be run after fpath is 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.

alexjurkiewicz avatar Feb 22 '21 22:02 alexjurkiewicz

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.

codecov[bot] avatar Feb 22 '21 23:02 codecov[bot]

I was having problems with autocompletion on zsh (oh-my-zsh), and these changes fixed it.

RuiLoureiro avatar Aug 30 '21 10:08 RuiLoureiro