diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-16 21:18:25 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-16 21:18:25 -0300 |
commit | 9981d4af200e461ba5bdc5515a0baf869d385d52 (patch) | |
tree | 2a4cfefc96be63fd62e3e37c986e76c2194fe692 | |
parent | e689eb995253a1861998514e49888430456f194b (diff) | |
download | kvmx-9981d4af200e461ba5bdc5515a0baf869d385d52.tar.gz kvmx-9981d4af200e461ba5bdc5515a0baf869d385d52.tar.bz2 |
Record command history at kvmx-shell
-rwxr-xr-x | kvmx | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |