fixed wait function (now presses enter automatically) and added execute

This commit is contained in:
Kjistóf 2017-10-08 03:07:32 +02:00
parent 5ac2879344
commit 2ba6689412

View File

@ -13,6 +13,7 @@ function wait()
else else
read -rst "$PROMPT_TIMEOUT" read -rst "$PROMPT_TIMEOUT"
fi fi
printf "\n"
} }
function type() function type()
@ -20,3 +21,6 @@ function type()
printf "$*\n" | simtyping printf "$*\n" | simtyping
wait wait
} }
function execute()
{ type "$@" && eval "$@"; }