paxtonhare / demo-magic

A handy shell script that enables you to write repeatable demos in a bash environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to execute eval?

vinamelody opened this issue · comments

Hi, how can I auto print this eval "$(curl -sL check.vapor.sh)" and run upon enter?

I'm using zsh but i tried this and iTerm is printing the shell of vapor.sh it seems...

#!/usr/bin/env bash

########################
# include the magic
########################
. demo-magic.sh

########################
# Configure the options
########################

DEMO_PROMPT="${GREEN}➜ ${CYAN}\W "

# hide the evidence
clear

# Put your stuff here
p "eval \"$(curl -sL check.vapor.sh)\""

oops sorry, found the solution, i should type pe 'eval "$(curl -sL check.vapor.sh)"'