Created
December 1, 2021 11:54
-
-
Save BasilSnowman/d934ae4d1ac2def34239b9766c5acd5e to your computer and use it in GitHub Desktop.
Linux history modification commands
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
| # Disable duplicate commands | |
| export HISTCONTROL=ignoredups | |
| # Save commands from several terminals to common history | |
| export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment