Created
January 5, 2018 16:29
-
-
Save Dillie-O/1f8670b3f7ecc0a8c5f5a662919dcdd1 to your computer and use it in GitHub Desktop.
[WSL Remove Win Path in ZSH] Remove windows specific path from WSL environment in ZSHRC #wsl #environment #configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove Windows paths to Ruby since it causes conflicts with npm/bower/etc. | |
PATH=$(echo :$PATH: | sed -e 's,:/mnt/c/tools/ruby22/bin:,:,g' -e 's/^://' -e 's/:$//') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1st step - Disable Windows path on WSL
Option A: Add to wsl.conf (after Build 17093)
sudo nano /etc/wsl.conf
Then add
then Ctrl+S then Ctrl+X then exit.
2nd step - Restart WSL
Option A:
Simple reenter WSL and test:
echo $PATH
Option B:
Run at PowerShell as Admin:
Restart-Service LxssManager
Option C:
Terminating WSL from PowerShell as Admin using
wslconfig /t Ubuntu