Skip to content

Add warning for incorrect usage of Nushell activation script#2906

Merged
gaborbernat merged 3 commits intopypa:mainfrom
esafak:activate.nu
Jul 21, 2025
Merged

Add warning for incorrect usage of Nushell activation script#2906
gaborbernat merged 3 commits intopypa:mainfrom
esafak:activate.nu

Conversation

@esafak
Copy link
Contributor

@esafak esafak commented Jul 16, 2025

Unlike the other shells, the nushell activation script is not sourced. Users coming from other shells, like myself, may find the correct usage (overlay use) unexpected and waste time trying to solve the issue, so we will present them with a warning if they source it.

Many thanks to @Bahex for suggesting the solution in nushell/nushell#16182

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

@gaborbernat gaborbernat merged commit 75518b1 into pypa:main Jul 21, 2025
80 of 82 checks passed
@esafak esafak deleted the activate.nu branch July 31, 2025 14:12
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