D
D
Dima2020-06-04 00:03:45
bash
Dima, 2020-06-04 00:03:45

Why are .bash_profile settings not applied on macOS?

I made aliases for some commands in the .bash_profile file, but they are only applied after the command source ~/.bash_profileand bash will not see them if I restart the terminal and do not enter this command. How can this be fixed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xotkot, 2020-06-04
@qpz

bash will not see them if I restart the terminal and do not enter this command

restart terminal this to .bashrc
.bash_profile read on login
Bash Startup Files

L
Lynn "Coffee Man", 2020-06-04
@Lynn

Use .bashrc
AND read the documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question