How to add a Windows path to the Windows Ubuntu Subsystem path
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Ancient Construction
--
Chapters
00:00 How To Add A Windows Path To The Windows Ubuntu Subsystem Path
00:30 Accepted Answer Score 4
00:58 Answer 2 Score 8
01:25 Thank you
--
Full question
https://superuser.com/questions/1146303/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#bash #windowssubsystemforlinux
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Ancient Construction
--
Chapters
00:00 How To Add A Windows Path To The Windows Ubuntu Subsystem Path
00:30 Accepted Answer Score 4
00:58 Answer 2 Score 8
01:25 Thank you
--
Full question
https://superuser.com/questions/1146303/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#bash #windowssubsystemforlinux
#avk47
ANSWER 1
Score 8
To add lasting params to the $PATH in Ubuntu Bash for Windows 10 you first have to start the bash with the additional param "--login"
C:\Windows\System32\bash.exe ~ --login
Thanks to https://github.com/Microsoft/BashOnWindows/issues/219#issuecomment-294390862
After that you can edit your .profile
nano ~/.profile
There you can add a line at the last position:
PATH=$PATH:/new/path:another/path
ACCEPTED ANSWER
Score 4
First, I don't understand what do you mean by Shell path. You said your Shell path is jos@HOME:~$
. jos
is your username and HOME
is your computer name. ~
indicate home directory.
If you want to access your folder in F: drive then you can do this:
cd /mnt/f/Projects/Phrasal
This will navigate you to the folder you want. If you want to add it to your PATH
then do this:
PATH=$PATH:~/mnt/f/Projects/Phrasal