Created
July 3, 2022 14:09
-
-
Save funkatron/eb775621e1ff5cc992e5c544a423cc14 to your computer and use it in GitHub Desktop.
Save bash history after every command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# so you probably want to make this the last line of your .bash_profile, or something similar | |
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'history -a' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment