hoard icon indicating copy to clipboard operation
hoard copied to clipboard

add command to print shell configs

Open LordMZTE opened this issue 1 year ago • 2 comments

It'd be great to have a command like hoard shell-config $SHELL that could be used like hoard shell-config fish | source in order to ship shell configs embedded in the binary. This has the advantage of allowing shell configs to be automatically updated without the user having to do anything.

I'd like to create a PR for this :D

LordMZTE avatar Sep 25 '22 13:09 LordMZTE

Sounds like a very useful addition! I'm pretty open on the implementation details. Do you want some pointers, or happy to go on your own?

hoard already has other parameter flags containing more than one word. They have been appended with underscores, so to keep things consistent, i'd go with hoard shell_config [...] See here

Hyde46 avatar Sep 25 '22 17:09 Hyde46

Yea, one more question: the current shell configs hard-code the keybind to Ctrl-h. Maybe we should add a CLI option that omits the command that sets the keybind, so the user can add that themselves. Thoughts?

EDIT: Just seen HOARD_NOBIND. However, the fish config doesn't seem to respect that. Should I just add that?

LordMZTE avatar Sep 25 '22 18:09 LordMZTE