Home Apple bash – Why does iTerm not supply ~/.bash_profile, however Mac Terminal does?

bash – Why does iTerm not supply ~/.bash_profile, however Mac Terminal does?

0
bash – Why does iTerm not supply ~/.bash_profile, however Mac Terminal does?

[ad_1]

This should be one thing quite simple, however I am unable to determine it out. Till not too long ago iTerm all the time correctly sourced .bash_profile which has:

Sellotape:~ mnewman$ cat .bash_profile
## .bash_profile - Ensure that .bashrc and .profile are learn

if [ -f ~/.bashrc ]; then
    supply ~/.bashrc
fi

if [ -f ~/.profile ]; then
    supply ~/.profile
fi

.profile has this essential line from MacPorts:

export PATH="/choose/native/bin:/choose/native/sbin:$PATH"

That is what Terminal says:

Sellotape:~ mnewman$ echo $SHELL
/bin/bash
Sellotape:~ mnewman$ echo $PATH
/choose/native/bin:/choose/native/sbin:/usr/native/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.safety.cryptexd/codex.system/bootstrap/usr/native/bin:/var/run/com.apple.safety.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.safety.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Variations/Present/Instructions

And that is what iTerm says:

Sellotape:~ mnewman$ echo $SHELL
/bin/bash
Sellotape:~ mnewman$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin

iTerm Settings>Profiles>Basic>Default has:
command /bin/bash

(I additionally tried Login Shell, however that did not work both.)

What have I achieved to mess up iTerm?

[ad_2]

Supply hyperlink

LEAVE A REPLY

Please enter your comment!
Please enter your name here