Closed ifreund closed 4 years ago
Cool this is a good solution. Thanks!
The scratch file is an approximation of a user-wide variable (still has to be sourced but that's faster than processing the human-readable .config file, especially with the 2.1.0 change to have the config file be a list of commands) so all sessions have to share a single file. mktemp ...XXX
would have lost that, but this approach doesn't.
Would you add chmod 600 <the file>
after the touch
es? Gets us pretty close to mktemp
Good call, I've added the chown
and removed the redirection to /dev/null
as it's unneeded with touch.
Works for me on macos. Thanks for the contribution!
You found the project at an exciting time moment, I'm aiming to get 3.0 out in the next week or two. Keep an eye out for it
Excellent! I see you've added some contribution guidelines as well.
And the code of conduct. And no worries about the commit messages guidelines, not aimed at you just gearing up for some wider sharing
Cool cool, I just made an AUR package for my own use by the way.
The current usage is incompatible with GNU mktemp, and is also unnecessary, as it does not leverage the XXXXXX mechanism to avoid conflicts.
Also, $TMPDIR is usually not set on linux distributions, in which case /tmp should be used by default.
This is, I think, a better solution than #1 as it stays much closer to the current logic.