From 8ae4566762069aa1ef12af6e20b086fdc5cb02b4 Mon Sep 17 00:00:00 2001 From: David Todd Date: Fri, 13 Dec 2019 09:31:53 -0600 Subject: [PATCH] enable shell-history --- shell/env | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell/env b/shell/env index b48399c..78998fb 100644 --- a/shell/env +++ b/shell/env @@ -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