pixegami / terminal-profile

This is my profile for UNIX (MacOS/Linux) terminals.
551 stars 157 forks source link

PATH variables not recognized Ubuntu. #6

Open abhinna1 opened 12 months ago

abhinna1 commented 12 months ago

I was really enjoying the terminal until when I was installing flutter on my system, I realized that the PATH variable wasn't updating until I explicitly ran the .bashrc file by source ~/.bashrc. Then after a few investigation, I realized that none of my PATH variables were accessible. Not sure what the cause to it may be tho.

david-rse commented 8 months ago

I had a similar issue, tried to source the .bashrc file and not happy with the results. The following fixed my issue:

In ~/.zshrc:

[[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile'

From: https://stackoverflow.com/questions/764600/how-can-you-export-your-bashrc-to-zshrc