From 9981d4af200e461ba5bdc5515a0baf869d385d52 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 16 Jun 2018 21:18:25 -0300 Subject: Record command history at kvmx-shell --- kvmx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kvmx') 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 -- cgit v1.2.3