-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(scoop-alter): Add scoop alter
command to switch shim's target
#4727
Conversation
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-)alternatives
in Linux. Meanwhile, uninstalling some apps which overwrite other's shims will restore previous ones (instead of removing commands).scoop alter
command 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-zstd
andpython
/python3
as examples:Uninstallation:
For command without alternatives:
For command without shim:
Checklist: