Add internal variables that we can use in zed config files like workspaceFolder or env:PATH #41200
MaxDev9
started this conversation in
Config, Settings and Keymaps
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example I would like to do something like this in my project
.zed/settings.json
{ "terminal": { "line_height": "comfortable", "env": { "PATH": "${env:PATH}:${workspaceFolder}/bin" } } }Unfortunately, I don't believe this functionality exist because when I print the PATH in the terminal it just gives me this.
${env:PATH}:${workspaceFolder}/bin
Meaning it does not replace ${} with any internal variables.
This means I have to manually add every single path I need for each workspace. That is of course if I choose to change the env:PATH for that workspace
It just seems that the current way of doing this isn't very optimal, and adding the ability to do this would fix that.
Beta Was this translation helpful? Give feedback.
All reactions