atuin
atuin copied to clipboard
Nushell: aliases syncing doesnt work
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.
Yep Nu is currently left out of this, implementation-wise
https://github.com/atuinsh/atuin/blob/04f2c95617d8d5f1f9143fe1d9b1f71279232445/atuin/src/command/client/init.rs#L127
I'd love it if there's some sort of workaround we could do to make dynamic config work
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)
@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 alias
es 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 )