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

bash: Make sure HISTFILE's directory exists #6309

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

DamienCassou
Copy link
Contributor

@DamienCassou DamienCassou commented Jan 12, 2025


Description

If HISTFILE's directory doesn't exist, bash history doesn't work. This PR fixes this.

Checklist

  • Change is backwards compatible.

  • Code formatted with ./format.

  • Code tested through nix-shell --pure tests -A run.all or nix develop --ignore-environment .#all using Flakes.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.

Maintainer CC

@github-actions github-actions bot added the shell label Jan 12, 2025
@DamienCassou DamienCassou force-pushed the mkdir-histfile-directory branch from 50f55ee to 35aaba5 Compare January 12, 2025 17:56
Copy link
Member

@rycee rycee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Added a few minor comments.

modules/programs/bash.nix Outdated Show resolved Hide resolved
@DamienCassou DamienCassou force-pushed the mkdir-histfile-directory branch 2 times, most recently from 40afd1b to 9c063b0 Compare January 26, 2025 11:37
Co-authored-by: Robert Helgesson <robert@rycee.net>
@DamienCassou DamienCassou force-pushed the mkdir-histfile-directory branch from 9c063b0 to 26651d1 Compare January 26, 2025 11:40
@DamienCassou DamienCassou marked this pull request as ready for review January 26, 2025 14:00
@DamienCassou DamienCassou requested a review from rycee January 26, 2025 14:00
@DamienCassou
Copy link
Contributor Author

Thank you for the feedback. I applied your changes.

@rycee rycee merged commit f99c704 into nix-community:master Feb 6, 2025
3 checks passed
@rycee
Copy link
Member

rycee commented Feb 6, 2025

Sorry about the delay. Merged to master now.

@DamienCassou DamienCassou deleted the mkdir-histfile-directory branch February 6, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants