Skip to content

Conversation

@ickc
Copy link
Contributor

@ickc ickc commented May 12, 2025

No description provided.

fs::u8path zshrc_path = home / ".zshrc";
fs::u8path zshrc_path
// use ZDOTDIR if set and fallback to HOME
const char* zdotdir = std::getenv("ZDOTDIR");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have util::get_env to properly read from the environment.

Comment on lines 1360 to 1368
fs::u8path zshrc_path
// use ZDOTDIR if set and fallback to HOME
const char* zdotdir = std::getenv("ZDOTDIR");
if (zdotdir != nullptr && zdotdir[0] != '\0')
{
zshrc_path = fs::u8path(zdotdir) / ".zshrc";
} else {
zshrc_path = home / ".zshrc";
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the repeated logic could be factored into a simple function.

which return ZDOTDIR if set else HOME
@codecov
Copy link

codecov bot commented Sep 25, 2025

Codecov Report

❌ Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.15%. Comparing base (2ee50e0) to head (4e48606).

Files with missing lines Patch % Lines
libmamba/src/core/shell_init.cpp 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3933   +/-   ##
=======================================
  Coverage   64.14%   64.15%           
=======================================
  Files         303      303           
  Lines       38853    38870   +17     
  Branches     2883     2876    -7     
=======================================
+ Hits        24923    24937   +14     
- Misses      13863    13866    +3     
  Partials       67       67           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AntoinePrv AntoinePrv changed the title use ZDOTDIR if set and fallback to HOME feat: Use ZDOTDIR if set and fallback to HOME Sep 25, 2025
@github-actions github-actions bot added the release::enhancements For enhancements PRs or implementing features label Sep 25, 2025
@ickc
Copy link
Contributor Author

ickc commented Sep 25, 2025

@AntoinePrv, do you have any pointers to fix the windows build and also the integration tests on UNIX platforms?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release::enhancements For enhancements PRs or implementing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants