-
Notifications
You must be signed in to change notification settings - Fork 205
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
[Feature request] Add some pathing system #739
Comments
Related: #152 |
Having a read about #152 , i agreed to @SquidDev argument about having each package as self contained files and path setups being files put inside the startup folder. However this issue is still valid for |
I believe that both of those have been suggested already. |
Typically all this discourse happened on Discord, which makes it much harder to link to :/. Anyway, the most useful discussion happened mid December 2020 (just search for
|
What we currently have
shell.setPath()
you can only set the path during runtimeshell.setAlias()
package.path
except from within the running programMy idea
I'd like to have some general way for setting those variables and some more, if we ever need to, permanently, without using the startup file. Maybe we could use
.settings
for those information. If we would have a lot of different packages installed viapackman
or any other packaging software, each package, that brings a newbin
orprograms
folder doesn't have to write into the startup file. I'm more interested in generalizingpackage.path
, since there is no clean way for setting thepackage.path
variable for every program, except by overriding theshell
API.Proposal
shell.path
andshell.package.path
and default them to whatever we use currently. And maybe do the same withshell.aliases
as a map..paths
which contains for each usecase e.g.shell.path
a list of paths. To manipulate those paths, maybe we could introduce a new api calledpath
orpaths
, where you can add and remove any path for any usecase (so uninstalling gets easier, if we remove a certain path (e.g./myprograms/bin
)Drawbacks
.settings
file. Still, you would need to add a new path API for that.The text was updated successfully, but these errors were encountered: