]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Record command history at kvmx-shell
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 17 Jun 2018 00:18:25 +0000 (21:18 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 17 Jun 2018 00:18:25 +0000 (21:18 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 4732df9e177a06435ed2396ddf980b1da194b8d9..b682f183a4b4a0020032ac9db5cb00ad29bcd2b0 100755 (executable)
--- 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