#!/usr/bin/env bash
# Exercise 3.1: the commands, one per line. Run it with: bash terminal.sh
# It works inside a temporary folder so it leaves nothing behind. On your own computer, start in your home folder instead.
set -e
cd "$(mktemp -d)"
mkdir -p code-from-zero

echo '$ cd code-from-zero'
cd code-from-zero
echo '$ mkdir chapter-03'
mkdir chapter-03
echo '$ cd chapter-03'
cd chapter-03
echo '$ pwd'
pwd | sed 's#.*/code-from-zero#~/code-from-zero#'
echo '$ ls ..'
ls ..
