Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
458B

  1. {%- from "linux/map.jinja" import system with context %}
  2. # History across sessions for Bash
  3. if [ -n "$BASH_VERSION" ]; then
  4. # Avoid duplicates
  5. export HISTCONTROL=ignoredups:erasedups
  6. # When the shell exits, append to the history file instead of overwriting it
  7. shopt -s histappend
  8. # After each command, append to the history file and reread it
  9. export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"
  10. fi