You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a temporary environment is created using pew mktmpenv, it has to be properly exited (e.g. using either exit or CTRL+D) for the environment to be removed.
If the terminal is "improperly closed" (e.g. by using the "close window" icon), then the temporary environment is not removed and must be manually removed (and that's not always easy without autocompletion given the name they can have! ;-))
I realised this when I discovered more than 20 temporary environments with pew ls...
Is there something that can be done about this? I don't think it's easy to detect that a temporary environment is not used anymore, but we can maybe warn the user when a new temporary environment is created that existing ones are still there?
The text was updated successfully, but these errors were encountered:
for this purpose, we'd probably have to pick a new naming convention (which would also help to delete them), to quickly list them.
Maybe that another possibility would be to overwrite WORKON_HOME with the system temporary directory. That way (usually upon reboot), they'd be cleaned even if the shell had been killed, and they wouldn't litter the usual WORKON_HOME.
The downside is that this would be a subtle behavior change, and the /tmp directory might have more lax read/write permissions than your usual WORKON_HOME (which could be a security liability)... maybe we could create a subfolder of /tmp and restrict permissions?
That could be a possibility. Is there any equivalent of /tmp on Windows?
If we're going to automatically remove temporary environments, we should perhaps add an option to make a temporary environment "persistent" (the workflow being "I would like to test something, I create a tmpenv, I realize I need more tests, I want to keep the environment for later"). Another possibility for that use case is to rely on pew cp, even if it has backwards.
If a temporary environment is created using
pew mktmpenv
, it has to be properly exited (e.g. using eitherexit
orCTRL+D
) for the environment to be removed.If the terminal is "improperly closed" (e.g. by using the "close window" icon), then the temporary environment is not removed and must be manually removed (and that's not always easy without autocompletion given the name they can have! ;-))
I realised this when I discovered more than 20 temporary environments with
pew ls
...Is there something that can be done about this? I don't think it's easy to detect that a temporary environment is not used anymore, but we can maybe warn the user when a new temporary environment is created that existing ones are still there?
The text was updated successfully, but these errors were encountered: