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

mommy should let you specify the directory for "i mean" copies #53

Open
lilyball opened this issue Nov 14, 2023 · 2 comments
Open

mommy should let you specify the directory for "i mean" copies #53

lilyball opened this issue Nov 14, 2023 · 2 comments

Comments

@lilyball
Copy link

mommy tries to copy itself to the same directory it's already in when using "i mean", but this won't work when it doesn't have permission to write to that directory (most notably, when installed via Nix). I should be able to tell mommy what directory to use for aliases (e.g. with an env var).

Also I noticed mommy copies her binary instead of symlinking. That seems like it will cause trouble when updating mommy.

@Gankra
Copy link
Owner

Gankra commented Nov 14, 2023

Not sure how we'd express the paths properly -- at the end of the day you can just use cp, right?

The copy behaviour is however intentional, as symlinking is cursed on windows.

@lilyball
Copy link
Author

Copy on windows, symlink elsewhere then?

And yeah I can cp or symlink myself, but that means I don't get to type cargo mommy i mean mommy i mean mommy i mean mistress.

I was thinking it would just be something like CARGO_MOMMY_I_MEAN_DIR=$HOME/bin.

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

2 participants