Skip to content

Remove get -i from default env file#8390

Merged
sholderbach merged 1 commit intonushell:mainfrom
rgwood:remove--i-from-default-env-file
Mar 10, 2023
Merged

Remove get -i from default env file#8390
sholderbach merged 1 commit intonushell:mainfrom
rgwood:remove--i-from-default-env-file

Conversation

@rgwood
Copy link
Copy Markdown
Contributor

@rgwood rgwood commented Mar 10, 2023

This is a follow-up from #8173, which was merged shortly after the 0.76 release. That PR changed default_env.nu so that the user's home folder is displayed as ~ in the left prompt. It did so using get -i.

This PR just rewrites the Nu code from #8173 to use try/catch instead of -i, which will make it easier to remove the -i flags from get and select eventually (see #8379).

I would like to merge this before the 0.77 release, so we don't end up with lots of env.nu files using get -i out in the wild.

@rgwood
Copy link
Copy Markdown
Contributor Author

rgwood commented Mar 10, 2023

I did some manual testing on Windows and Linux, both seem good.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 10, 2023

Codecov Report

Merging #8390 (723d4fe) into main (3e9bb40) will decrease coverage by 0.37%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8390      +/-   ##
==========================================
- Coverage   68.48%   68.12%   -0.37%     
==========================================
  Files         620      620              
  Lines       99495    99495              
==========================================
- Hits        68140    67779     -361     
- Misses      31355    31716     +361     

see 3 files with indirect coverage changes

@sholderbach sholderbach merged commit de6bab5 into nushell:main Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants