feat(scoop-alter): Add scoop alter command to switch shim's target#4727
feat(scoop-alter): Add scoop alter command to switch shim's target#4727
scoop alter command to switch shim's target#4727Conversation
scoop alter command to switch shim's target
|
Wow, very interesting! Some notes:
|
|
I'll make another PR that moves all shim-related functions to a separate file and refactors all the functions using PowerShell conventions, it's better IMO, right? The 'user-defined shims' in #3303 is more likely |
Sure.
No no, the idea is to allow creation of custom shims. For example, I want to create a shim like this: The |
|
Okay, got it.
|
|
Any other suggestions? @rashil2000 @issaclin32 |
|
Yes, plan looks awesome! But why create both |
For convenience 😆 . For example, in my use cases, I may never use |
|
To be honest, the command |
|
I would vote for |
|
This is not a binary choice; they are mutually inclusive. If only |
ea82fb1 to
44b9425
Compare
|
@rashil2000 I've done |
A WONDERFUL FEATURE OF SCOOP 😆 🎉
Description
Now Scoop could switch apps using
scoop alter <app>just as(update-)alternativesin Linux. Meanwhile, uninstalling some apps which overwrite other's shims will restore previous ones (instead of removing commands).scoop altercommand to choose default of command (a.k.a., shim)Motivation and Context
There are many issues requesting this feature (just incomplete lists):
How Has This Been Tested?
Tested in PowerShell 5.1/7.2.1, CMD, and WSL/Ubuntu. (Not tested in MSYS2 and CygWin)
Use
7zip/7zip-zstdandpython/python3as examples:Uninstallation:
For command without alternatives:
For command without shim:
Checklist: