From: Silvio Rhatto Date: Sun, 17 Jun 2018 00:18:25 +0000 (-0300) Subject: Record command history at kvmx-shell X-Git-Tag: 0.1.0~205 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9981d4af200e461ba5bdc5515a0baf869d385d52;p=kvmx.git Record command history at kvmx-shell --- diff --git a/kvmx b/kvmx index 4732df9..b682f18 100755 --- a/kvmx +++ b/kvmx @@ -1780,6 +1780,8 @@ function kvmx_shell { # While a "quit" command isn't entered, read STDIN while read -rep "kvmx:/${USER}@${VM}> " STDIN; do + history -s "$STDIN" + if [ "$STDIN" == "quit" ] || [ "$STDIN" == "exit" ] || [ "$STDIN" == "bye" ]; then break elif [ "$STDIN" == "shell" ]; then