Sample Header Ad - 728x90

iterm2 to honor /etc/paths with bash

1 vote
1 answer
571 views
I use Bash as my preferred shell, but the PATH values are different in my iterm2 and my Terminal (which honors my /etc/paths). How to have iterm2 to honor /etc/paths with the bash shell? More details: Both my iterm2 and my Terminal are using Bash as my preferred shell: enter image description here enter image description here They're both starting from my default HOME directory, which contains the same files for both of them, but why Terminal has paths from my /etc/paths, *and* /etc/paths.d/, yet iterm2 only has: /usr/bin:/bin:/usr/sbin:/sbin enter image description here **Update** I tried to use -i with item2, but it is still not sourcing /etc/profile: enter image description here Actually, it is not sourcing my ~/.bash_profile file either. Why? Basically, I'm [completely confused with my $PATH, iTerm, ... setup](https://stackoverflow.com/questions/24890483/completely-confused-with-my-path-iterm-and-zsh-setup) .
Asked by xpt (445 rep)
Jan 22, 2024, 11:39 PM
Last activity: Jan 23, 2024, 01:32 AM