Skip to content

Better handling for removal of nu init #7245

@RuiNtD

Description

@RuiNtD

Code of Conduct

  • I agree to follow this project's Code of Conduct

What would you like to see changed?

Since removing the oh-my-posh init nu command doesn't remove the autoload script / doesn't stop OMP's script from running, this should probably be handled. Here are some suggestions:

  1. Have the OMP script delete itself after running, so it needs to be remade by oh-my-posh init nu every time. Other than the extra IO this causes, this seems like the best option to me.
  2. Wrap the Nu script with something like this:
    if (which oh-my-posh | is-not-empty) {}
    Not the best option by itself, since the user may still have OMP installed despite removing the init script.
  3. Mention in OMP's documentation that the script needs to be manually deleted to disable it.
  4. Have a command specifically for deleting the script. oh-my-posh delete-nu?

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions