Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If not interactive, do nothing #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

None yet

1 participant