Skip to content

fix: source .profile when creating new .bash_profile#407

Merged
shannah merged 1 commit intomasterfrom
fix/bash-profile-sourcing
Feb 10, 2026
Merged

fix: source .profile when creating new .bash_profile#407
shannah merged 1 commit intomasterfrom
fix/bash-profile-sourcing

Conversation

@shannah
Copy link
Copy Markdown
Owner

@shannah shannah commented Feb 10, 2026

When jDeploy creates a new .bash_profile, bash stops reading .profile since it only reads the first file it finds among .bash_profile, .bash_login, and .profile. This caused users to lose their aliases and other configurations defined in .profile.

Now when creating a new .bash_profile, we check if .profile exists and add code to source it, preserving the user's existing configuration.

When jDeploy creates a new .bash_profile, bash stops reading .profile
since it only reads the first file it finds among .bash_profile,
.bash_login, and .profile. This caused users to lose their aliases
and other configurations defined in .profile.

Now when creating a new .bash_profile, we check if .profile exists
and add code to source it, preserving the user's existing configuration.
@shannah shannah merged commit a4922f3 into master Feb 10, 2026
10 checks passed
shannah added a commit that referenced this pull request Feb 10, 2026
When jDeploy creates a new .bash_profile, bash stops reading .profile
since it only reads the first file it finds among .bash_profile,
.bash_login, and .profile. This caused users to lose their aliases
and other configurations defined in .profile.

Now when creating a new .bash_profile, we check if .profile exists
and add code to source it, preserving the user's existing configuration.
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