Continuing discussion at #6 (comment)
The problem: By construing the home parameter as my actual $HOME directory, I accidentally overwrote the .zshenv file in it because completest creates a file of such a name there unconditionally. I think it’s a papercut that it would be nice to clarify.
The suggested solution:
- Deprecate/remove
new() because more specific names tend to be more descriptive (IMO, of course).
- Rename “home” to “workdir” because it can be confused with an actual home directory and result in overwritten configuration files.
- Add a new constructor
with_temp_workdir(bin_root) that creates a temporary workdir automatically.
- Probably also rename
bin_root to something like shell_binary_dir_path.
EDIT: Clarify the problem.
Continuing discussion at #6 (comment)
The problem: By construing the
homeparameter as my actual $HOME directory, I accidentally overwrote the.zshenvfile in it because completest creates a file of such a name there unconditionally. I think it’s a papercut that it would be nice to clarify.The suggested solution:
new()because more specific names tend to be more descriptive (IMO, of course).with_temp_workdir(bin_root)that creates a temporary workdir automatically.bin_rootto something likeshell_binary_dir_path.EDIT: Clarify the problem.