Skip to content

Instantly share code, notes, and snippets.

@BasilSnowman
Created December 1, 2021 11:54
Show Gist options
  • Select an option

  • Save BasilSnowman/d934ae4d1ac2def34239b9766c5acd5e to your computer and use it in GitHub Desktop.

Select an option

Save BasilSnowman/d934ae4d1ac2def34239b9766c5acd5e to your computer and use it in GitHub Desktop.
Linux history modification commands
# 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