f / f/omelette
Automatic install makes zsh to hang forever
- Dominant language
- CoffeeScript
- Stars
- 1.4k
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
Great tool! I have had a great pleasure to use it to create my own autocomplete stuff :-)
I have used the `.setupShellInitFile()` function to automatically setup the shell autocompletion. However when I do so and run `source ~/.zshrc`, it hangs forever. I have to `kill -9` the hanging process.
The added line in the `.zshrc` files is the following:
```
# .zshrc
. <(app --completion)
```
When I turn it into the following one, it does not hang and autocompletion works:
```
eval $(app --completion)
```
I am unsure about this issue.
Do you have an idea?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with `.setupShellInitFile()` and reproduce the problem by sourcing the generated `.zshrc` line `. <(app --completion)`. Compare its behavior with `eval $(app --completion)` and trace the completion command's output and process lifetime; done means sourcing `.zshrc` no longer hangs and autocompletion still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- zsh
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100