hosh icon indicating copy to clipboard operation
hosh copied to clipboard

state management

Open dfa1 opened this issue 6 years ago • 2 comments

Problem The intent is to try to unify:

  • changes to the PATH
  • pushd/popd to save/restore directories
  • .envfiles to save/restore variables In hosh everything is stored inside a State object, that is injected to every command to provide current working directory, variables, etc.

Solution Let's take inspiration by nushell for enter/leave and p/n.

Benefit Still unclear to me.

dfa1 avatar Nov 19 '19 19:11 dfa1

probably should be designed together with #264

dfa1 avatar Jun 01 '20 08:06 dfa1

and with #273

dfa1 avatar Jun 14 '20 14:06 dfa1