ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
20.95k stars 1.4k forks source link

[Feature] Configure Scoop to store persist to a Custom Directory by changing `SCOOP_PERSIST` #4746

Open candrapersada opened 2 years ago

candrapersada commented 2 years ago

Feature Request

Is your feature request related to a problem? Please describe.

there is no information about persist portable #### Describe 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
rashil2000 commented 2 years ago

It might not be that simple. What will happen to persist for global apps if this variable is defined?

HUMORCE commented 2 years ago

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.

rashil2000 commented 2 years ago

Too many config options will result in a mess.

@candrapersada what is your use case?

Sei-lus commented 2 years ago

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.

kumarchandresh commented 8 months ago

:sparkles: It will help move the npm bin and cache folder to the Dev Drive automatically.