demo (288B) [raw]
1 #!/bin/sh 2 # demo -- script(1) wrapper with shell config for better copy/pasta 3 cat <<EOM >/tmp/demo.env 4 export TERM=dumb 5 export PAGER=cat 6 export HISTSIZE=10000 7 alias g="echo 'Use the full command during demo(1)!'" 8 PS1='\$ ' 9 EOM 10 11 export ENV=/tmp/demo.env 12 script -c /bin/sh /tmp/demo.script