r/commandline • u/Spikey8D • Jan 22 '18
Async shell idea, is it possible?
I have been looking at Zsh prompts like Pure, Geometry and Spaceship, which are able to utilise asynchronous execution.
But how about showing the prompt and allowing the user to type while the previous command is still executing? (I suppose this command would then be queued up and run directly after if the exit status is 0).
You can get similar behaviour already by typing the next command while the previous one is still running, but the input gets mixed up with any stdout of the command. The difference here is there would be a full prompt.
Is it possible in Zsh? Or would it require a whole new shell, or even a new terminal emulator?
16
Upvotes