I use a mac at work, which has /etc/paths to add paths, with the syntax:
/usr/foo
/usr/bar
Using wsl with ubuntu-18.04-ls, I wanted to add "/home/linuxbrew/.linuxbrew/bin" to etc/environment, because I read that is the equivalent of /etc/paths.
Changed the line from: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
to
PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
,restarted, typed echo $PATH but it would still print the old line. Am I in the wrong spot for setting paths globally or did I do something wrong?