mafredri / zsh-async

Because your terminal should be able to perform tasks asynchronously without external tools!
MIT License
756 stars 37 forks source link

Workers automatically inherit their parent's PWD #27

Closed annacrombie closed 5 years ago

annacrombie commented 6 years ago

In this commit I have proposed two different methods for implementing this, detailed in comments at line 160.

25

annacrombie commented 6 years ago

Hey, I made some changes. See what you think.

mafredri commented 5 years ago

Hey @annacrombie, I'm sorry for leaving this hanging so long. I just couldn't get around the fact that this implementation was very specific for a single use-case.

I wanted to make this a bit more generic, so I hacked together #29. Syncing pwd can be done with async_worker_eval my_worker cd $PWD.

I appreciate all your work with this branch and do feel a bit bad for creating a separate PR. I would appreciate your input on #29, though!