reedline icon indicating copy to clipboard operation
reedline copied to clipboard

Add PWD to the `Reedline` state

Open yizhepku opened this issue 8 months ago • 7 comments

This PR adds the current working directory as part of the Reedline state, instead of using std::env::current_dir() to retrieve it from the environment. Applications should call Reedline::with_cwd() to update the current working directory when it changes.

This is necessary to support https://github.com/nushell/nushell/pull/12922, which causes std::env::current_dir() to deviate from Nushell's $env.PWD.

yizhepku avatar May 31 '24 20:05 yizhepku