the execute command now prints a traditional looking prompt
This commit is contained in:
parent
567af6399d
commit
a59d812f24
6
demo.sh
6
demo.sh
@ -20,7 +20,11 @@ function type()
|
|||||||
{ printf "$*" | simtyping; }
|
{ printf "$*" | simtyping; }
|
||||||
|
|
||||||
function execute()
|
function execute()
|
||||||
{ type "$@" && wait && eval "$@"; }
|
{
|
||||||
|
printf "$(whoami)@$(hostname)\$ "
|
||||||
|
type "$@" && wait
|
||||||
|
eval "$@"
|
||||||
|
}
|
||||||
|
|
||||||
function cmd()
|
function cmd()
|
||||||
{ read command && eval "${command}"; }
|
{ read command && eval "${command}"; }
|
||||||
|
Loading…
Reference in New Issue
Block a user