How do I reevaluate "/.profile" for all terminals? #13836

Closed
opened 2026-01-31 03:53:29 +00:00 by claunia · 2 comments
Owner

Originally created by @Sebastian-Nielsen on GitHub (May 18, 2021).

Windows Terminal version (or Windows build number)

10.0.9

Other Software

asdf

Steps to reproduce

If I run "pip install flask"

then I am unable to run "flask" afterwards, because flask isn't in environmental variables. Running ". ~/.profile" will only work for the current terminal.

It says here that in order to make it persistent for all terminals, I have to log in and out, but since I am running wsl, I am not able to log in and out. So what should I do?

Expected Behavior

.

Actual Behavior

.

Originally created by @Sebastian-Nielsen on GitHub (May 18, 2021). ### Windows Terminal version (or Windows build number) 10.0.9 ### Other Software asdf ### Steps to reproduce If I run "pip install flask" then I am unable to run "flask" afterwards, because flask isn't in environmental variables. Running ". ~/.profile" will only work for the current terminal. It says [here](https://askubuntu.com/questions/59126/reload-bashs-profile-without-logging-out-and-back-in-again) that in order to make it persistent for all terminals, I have to log in and out, but since I am running wsl, I am not able to log in and out. So what should I do? ### Expected Behavior . ### Actual Behavior .
Author
Owner

@zadjii-msft commented on GitHub (May 18, 2021):

I'm pretty sure that you can just close and reopen the Terminal. A better place for this question might be https://github.com/microsoft/wsl/discussions

@zadjii-msft commented on GitHub (May 18, 2021): I'm pretty sure that you can just close and reopen the Terminal. A better place for this question might be https://github.com/microsoft/wsl/discussions
Author
Owner

@DHowett commented on GitHub (May 18, 2021):

That's correct. You don't need to log out/log back in, and it will suffice to either source the newly-updated profile with . ~/.profile or relaunch your shells.

@DHowett commented on GitHub (May 18, 2021): That's correct. You don't need to log out/log back in, and it will suffice to either source the newly-updated profile with `. ~/.profile` or relaunch your shells.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13836