atuin icon indicating copy to clipboard operation
atuin copied to clipboard

Nushell: aliases syncing doesnt work

Open YummyOreo opened this issue 11 months ago • 3 comments

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.

YummyOreo avatar Mar 11 '24 16:03 YummyOreo

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

ellie avatar Mar 11 '24 17:03 ellie

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)

YummyOreo avatar Mar 12 '24 03:03 YummyOreo

@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 )

develop7 avatar Jul 11 '24 10:07 develop7