Skip to content

Option to keep .bash_historyΒ #2481

Closed
Closed

Description

@github-tomster

Is your feature request related to a problem? Please describe.
usually one can use the bash history unfortunately not on this VM πŸ™‡πŸ»
/var/scripts/history.sh prevents that πŸ—‘οΈ

Describe the solution you'd like
is there a non obvious reason for truncate -s0 "$HOME/.bash_history" ❓

Describe alternatives you've considered
can one disable history.sh without breaking the VM ❓

Additional context
i searched the repo but i am not sure if this ist the first issue/question regarding the missing history 🀷🏻

Activity

  1. enoch85 commented on May 1, 2023

    @enoch85
    Member

    can one disable history.sh without breaking the VM ❓

    Yes, just comment it out in the .bash_profile

    The idea behind it was to remove commands which the clumsy user had been making containing passwords and stuff - see it as a security mesure.

  2. github-tomster commented on May 1, 2023

    @github-tomster
    Author

    @enoch85
    thank you for confirming πŸ‘πŸ»
    maybe a hint/comment like:

    bash /var/scripts/nextcloud.sh
    # comment out following line to keep bash_history at own risk!
    bash /var/scripts/history.sh
    

    could prevent such noise 🀷🏻

  3. enoch85 commented on May 1, 2023

    @enoch85
    Member

    Uninitiated user: Didn't even know history was saved per default
    Power user: Ask the same question as you, finds the answer and fixes it. ;)

  4. github-tomster commented on May 1, 2023

    @github-tomster
    Author

    @enoch85
    was the answer already out there πŸ€”
    i mean the 'will it break the nextcloudvm environment' question ❓

  5. pjrobertson commented on Dec 22, 2023

    @pjrobertson
    Contributor

    I just came across this 'issue' of .bash_history being cleared and was confused why. Some digging led me to the history.sh file and then here. I've created a PR to at least add this comment in the history.sh file see: #2604

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions