PierreBeucher / novops

Cross-platform secret & config manager for development and CI environments
https://novops.dev
GNU Lesser General Public License v3.0
158 stars 9 forks source link

ZSH: arrow are not correctly bound on load #91

Closed Neferites closed 2 months ago

Neferites commented 4 months ago

Describe the bug When source <(novops load) is run on zsh with multiples env (dev / int), environment can't be selected with arrows.

To Reproduce Steps to reproduce the behavior:

  1. Run apt install -y zsh
  2. Run zsh
  3. Run source <(novops load)
  4. try to select an env

Expected behavior Env should be selected using arrows.

Environment:

Additional context N/A.

PierreBeucher commented 4 months ago

Thanks for the report, I'll be right on it

PierreBeucher commented 4 months ago

Got some progress on this. In zsh you can use =(novops load) instead of <(novops load) (=() is a zsh specific syntax for process substitution)

In zsh the <() documented different is that sub-process result is written to a pipe instead of a temporary file, but it does not say anything about how a process attaches to terminal's stdin. Still enquiring.

PierreBeucher commented 2 months ago

Added doc for zsh / ksh for which =() is preferred over <() https://novops.dev/examples/shell.html