punktdateien-bashrc/settings.d/autosave-history.sh

3 lines
101 B
Bash

#!/usr/bin/env bash
[[ "${CONFIG_AUTOSAVE_HISTORY}" == "1" ]] && export "PROMPT_COMMAND=history -a"