From a59d812f24d51d7bde7d680a029dd834466b3719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sun, 8 Oct 2017 03:44:43 +0200 Subject: [PATCH] the execute command now prints a traditional looking prompt --- demo.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/demo.sh b/demo.sh index f2f2f08..749d6b7 100644 --- a/demo.sh +++ b/demo.sh @@ -20,7 +20,11 @@ function type() { printf "$*" | simtyping; } function execute() -{ type "$@" && wait && eval "$@"; } +{ + printf "$(whoami)@$(hostname)\$ " + type "$@" && wait + eval "$@" +} function cmd() { read command && eval "${command}"; }