Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nushell: aliases syncing doesnt work #1862

Open
YummyOreo opened this issue Mar 11, 2024 · 3 comments
Open

Nushell: aliases syncing doesnt work #1862

YummyOreo opened this issue Mar 11, 2024 · 3 comments

Comments

@YummyOreo
Copy link
Contributor

I dont know if I should label this as a bug or feature request. Also I dont know if it's possible in the current version of nushell as dynamic aliases dont work.

@ellie
Copy link
Member

ellie commented Mar 11, 2024

Yep Nu is currently left out of this, implementation-wise

Shell::Nu => self.init_nu(),

I'd love it if there's some sort of workaround we could do to make dynamic config work

@YummyOreo
Copy link
Contributor Author

YummyOreo commented Mar 12, 2024

A couple of ideas i had was:

  • write the config to a file each time the shell is started then load it next time
  • Ask for the nushell plugin system be more comprehensive allowing editing of the configuration ect. (Plugins are written in rust or python)

@develop7
Copy link

@ellie did you try to hook to command_not_found? Sure it's a hack, but still a way to get them really dynamic.

Or you could just settle with bunch of aliases in the init.nu and require us to restart the shell to pick up changes (fine by me; there's no proper way to delete an alias in Nushell anyway )

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

No branches or pull requests

3 participants