Hi,
For whatever reason, it doesnt matter what files I make changes to, to export new PATH variable.
The $PATH variable always stays the same “/usr/local/bin:/usr/bin”.
Anything I can do about this?
Is there a hidden file holding these variables on?
Thanks.
I even did a ripgrep in attempt to find, but there are always at least three. And yet in the errors and by trying to access the $PATH directly, its only two paths in it.
/etc/login.defs:ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
/etc/login.defs:ENV_PATH PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
/etc/ssh/sshd_config:# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
/opt/postman/app/resources/app/node_modules/simple-swizzle/node_modules/is-arrayish/yarn-error.log: /Users/junon/.yarn/bin:/Users/junon/.config/yarn/global/node_modules/.bin:/Users/junon/perl5/bin:/Users/junon/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/junon/bin:/Users/junon/.local/bin:/src/.go/bin:/src/llvm/llvm/build/bin:/Users/junon/Library/Android/sdk/platform-tools:/Users/junon/n/bin:/usr/local/texlive/2017/bin/x86_64-darwin/
/usr/lib/initcpio/init:export PATH='/usr/local/sbin:/usr/local/bin:/usr/bin'
/usr/lib/bash/Makefile.inc:CFLAGS = -march=x86-64-v3 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wno-error -fstack-clash-protection -fcf-protection -mpclmul -g -ffile-prefix-map=/tmp/pkg/src=/usr/src/debug/bash -flto=auto -DDEFAULT_PATH_VALUE='"/usr/local/sbin:/usr/local/bin:/usr/bin"' -DSTANDARD_UTILS_PATH='"/usr/bin"' -DSYS_BASHRC='"/etc/bash.bashrc"' -DSYS_BASH_LOGOUT='"/etc/bash.bash_logout"' -DNON_INTERACTIVE_LOGIN_SHELLS -fprofile-partial-training -fprofile-use
/usr/lib/systemd/system-environment-generators/10-arch:echo 'PATH=/usr/local/sbin:/usr/local/bin:/usr/bin'
/usr/share/factory/etc/ssh/sshd_config:# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
/usr/share/doc/fish/tutorial.html:<span class="go">/usr/local/sbin:/usr/local/bin:/usr/bin</span>
/usr/bin/update-smart-drivedb:export PATH="/usr/local/bin:/usr/bin:/bin"
/usr/share/fish/man/man1/fish-tutorial.1:/usr/local/sbin:/usr/local/bin:/usr/bin
/usr/share/fish/man/man1/fish-doc.1:/usr/local/sbin:/usr/local/bin:/usr/bin
/usr/bin/bashbug:CFLAGS="-march=x86-64-v3 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wno-error -fstack-clash-protection -fcf-protection -mpclmul -g -ffile-prefix-map=/tmp/pkg/src=/usr/src/debug/bash -flto=auto -DDEFAULT_PATH_VALUE='"/usr/local/sbin:/usr/local/bin:/usr/bin"' -DSTANDARD_UTILS_PATH='"/usr/bin"' -DSYS_BASHRC='"/etc/bash.bashrc"' -DSYS_BASH_LOGOUT='"/etc/bash.bash_logout"' -DNON_INTERACTIVE_LOGIN_SHELLS -fprofile-partial-training -fprofile-use"
/usr/share/oh-my-zsh/plugins/chruby/chruby.plugin.zsh: if PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" command ruby &>/dev/null; then
/usr/share/smartmontools/smartd_warning.sh:export PATH="/usr/local/bin:/usr/bin:/bin"