From 7fbe371049472b766fd2ee3306072c9c4e0aaf07 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 16 Jun 2018 21:23:35 -0300 Subject: Adds history support at shell action --- lib/keyringer/actions/shell | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/keyringer/actions/shell b/lib/keyringer/actions/shell index 3b98d68..d87a638 100755 --- a/lib/keyringer/actions/shell +++ b/lib/keyringer/actions/shell @@ -15,6 +15,8 @@ keyringer_usage $KEYRING # While a "quit" command isn't entered, read STDIN while read -rep "keyringer:/${KEYRING}${SHELLPATH}> " STDIN; do + history -s "$STDIN" + if [ "$STDIN" == "quit" ] || [ "$STDIN" == "exit" ] || [ "$STDIN" == "bye" ]; then break elif [ "$STDIN" == "shell" ]; then -- cgit v1.2.3