Comments (2)
Introduced support via $WslEnvironmentVariables["<NAME>"] = "<VALUE>" rather than try to send all Windows environment variables down.
This neatly contains WSL environment variables separately from Windows environment variables but also avoids conflicting with variables like PATH that are automatically modified and set within WSL.
Furthermore, many Windows environment variables point to absolute paths that would need to be translated to be meaningful within WSL, so opting in variables vs. trying to send them all down avoids the overhead of trying to translate them all every time a command is called when most of them would not be useful.
from powershell-wsl-interop.
Note that if you don't mind cluttering your Windows environment variables or already have some set defined that you'd like to share within WSL, you could also use the WSLENV environment variable.
from powershell-wsl-interop.
Related Issues (20)
- Test-Path fails with invalid wildcard pattern errors for any arguments that contain / or \ enclosed in [] (common in regular expressions).
- Commands are not saved HOT 2
- Error loading profile HOT 6
- Wsl Default Paramter Error HOT 15
- Completion not working for default shells other than bash HOT 26
- PowerShell passes trimmed command to bash completion. HOT 7
- \\wsl$\<distro_name>\<path> UNC path syntax is not converted HOT 3
- Piping to less doesn't work with WSL2 distro HOT 11
- Cannot run npm/nvm HOT 16
- Bash Completion for python based commands (Ansible) HOT 8
- Make WslDefaultParameterValues dynamic not static HOT 3
- Argument completion only works for the first command in a pipeline
- wsl.exe ls is super slow (is this due to vmIdleTimeout=60 seconds) HOT 1
- -exec Parameter for "find" does not work properly HOT 2
- Command execution broken in Powershell 7.3.0 HOT 6
- `zsh:1: permission denied:` HOT 6
- Is there a way to export aliases from WSL2, so I can use them in PowerShell? HOT 2
- Feature Request: Ability to define bash functions that can be used either in the shell or PowerShell profile. HOT 1
- Awk not working correctly HOT 5
- Install-Module WslInterop makes profile loading very slow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powershell-wsl-interop.