When should I use .bashrc and when .profile?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I am basically putting all my settings into my .bashrc and when I was using zsh it was all in my .zshrc.
The Rust installer just informed me that it has added the new installation to my PATH by modifying .profile.
When should things go into ~/.profile?
Is it only doing that because it doesn't know which shell I am using or should all somewhat general settings be in .profile?
bashrc
add a comment |Â
up vote
0
down vote
favorite
I am basically putting all my settings into my .bashrc and when I was using zsh it was all in my .zshrc.
The Rust installer just informed me that it has added the new installation to my PATH by modifying .profile.
When should things go into ~/.profile?
Is it only doing that because it doesn't know which shell I am using or should all somewhat general settings be in .profile?
bashrc
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am basically putting all my settings into my .bashrc and when I was using zsh it was all in my .zshrc.
The Rust installer just informed me that it has added the new installation to my PATH by modifying .profile.
When should things go into ~/.profile?
Is it only doing that because it doesn't know which shell I am using or should all somewhat general settings be in .profile?
bashrc
I am basically putting all my settings into my .bashrc and when I was using zsh it was all in my .zshrc.
The Rust installer just informed me that it has added the new installation to my PATH by modifying .profile.
When should things go into ~/.profile?
Is it only doing that because it doesn't know which shell I am using or should all somewhat general settings be in .profile?
bashrc
bashrc
asked 12 mins ago
Franklin
1253
1253
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
.profile is read by every login shell, .xxxrc is read by every interactive shell after reading .profile.
You need to decide yourself depending on what you like to add.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
.profile is read by every login shell, .xxxrc is read by every interactive shell after reading .profile.
You need to decide yourself depending on what you like to add.
add a comment |Â
up vote
0
down vote
.profile is read by every login shell, .xxxrc is read by every interactive shell after reading .profile.
You need to decide yourself depending on what you like to add.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
.profile is read by every login shell, .xxxrc is read by every interactive shell after reading .profile.
You need to decide yourself depending on what you like to add.
.profile is read by every login shell, .xxxrc is read by every interactive shell after reading .profile.
You need to decide yourself depending on what you like to add.
answered 7 mins ago
schily
10k31641
10k31641
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476593%2fwhen-should-i-use-bashrc-and-when-profile%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password