aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-16 21:18:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-16 21:18:25 -0300
commit9981d4af200e461ba5bdc5515a0baf869d385d52 (patch)
tree2a4cfefc96be63fd62e3e37c986e76c2194fe692 /kvmx
parente689eb995253a1861998514e49888430456f194b (diff)
downloadkvmx-9981d4af200e461ba5bdc5515a0baf869d385d52.tar.gz
kvmx-9981d4af200e461ba5bdc5515a0baf869d385d52.tar.bz2
Record command history at kvmx-shell
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx2
1 files changed, 2 insertions, 0 deletions
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