Scoop
Scoop copied to clipboard
[Feature] Configure Scoop to store persist to a Custom Directory by changing `SCOOP_PERSIST`
Feature Request
Is your feature request related to a problem? Please describe.
there is no information about persist portableDescribe the solution you'd like
add persist portable like$env:SCOOP_PERSIST='F:\ScoopPersist'
[Environment]::SetEnvironmentVariable('SCOOP_PERSIST', $env:SCOOP_PERSIST, 'Machine')
# run the installer
Describe alternatives you've considered
It might not be that simple. What will happen to persist for global apps if this variable is defined?
that's a good suggestion, but i dont endorse it.
It might not be that simple. What will happen to persist for global apps if this variable is defined?
for this case, just add another environment variable?: SCOOP_PERSIST_GLOBAL
env variable game? i dont think this is the focus for scoop, but it is acceptable.
@candrapersada make a PR on this to change my(or ohter people's) opinion.
Too many config options will result in a mess.
@candrapersada what is your use case?
I like the idea a lot. In my case I use multiple partitions to safe guard scoop apps but having this would be a good idea.
Make SCOOP_PERSIST default to the current scoop directory and only upon user interaction by adding or editing the variable as to not make it a mess.
:sparkles: It will help move the npm bin and cache folder to the Dev Drive automatically.