enable shell-history

This commit is contained in:
David Todd 2019-12-13 09:31:53 -06:00
parent 42dd9be795
commit 8ae4566762

View File

@ -39,3 +39,10 @@ fi
if [[ -z "$TMUX" && "$TMUXATT" != "TRUE" && "$ENABLE_TMUXAC" != "FALSE" ]]; then
tmux attach -t C0DE || tmux new -s C0DE
fi
# Enable shell-history for interactive shells
# https://github.com/pawamoy/shell-history
if [[ $- == *i* ]] && command -v shellhistory-location &>/dev/null; then
. $(shellhistory-location)
shellhistory enable
fi