Skip to content

Conversation

Aeredren
Copy link

When the shell is not an interactive shell, return from the bashrc directly. Avoid sourcing unnecessary config for a shell you'll never see.

This line should be at the top of .bashrc, so if someone source this file from his own .bashrc he/she is better of moving this line to his file.

But it is nonetheless effective here, and as one of this project use-case is to be a model for people own config or to be systematically install on shared machine account as .bashrc, I think it is a good things to add.

Best Regards,
Aeredren

When the shell is not an interactive shell, return from the bashrc directly. Avoid sourcing unnecessary config for a shell you'll never see.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant