From: Silvio Rhatto Date: Sun, 17 Jun 2018 00:23:35 +0000 (-0300) Subject: Adds history support at shell action X-Git-Tag: 0.5.4~4 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7fbe371049472b766fd2ee3306072c9c4e0aaf07;p=keyringer.git Adds history support at shell action --- diff --git a/ChangeLog b/ChangeLog index 1d0b4e6..1672236 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ -2010-06-06 - unreleased - Silvio Rhatto +2010-06-16 - unreleased - Silvio Rhatto + + Adds history support at shell action Fix passphrase entry at genpairs when exporting secret keys 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