To test multiple lines of
#shell #script I usually used to save it in a file and run it. 😞
But just found out it can be done more easily:
1. type `{` and enter
2. enter multiple lines of shell script
3. press enter and close it with `}` then enter again
Works on
#bash,
#ksh,
#zsh /bin/sh (
#OpenBSD,
#Debian) and possibly every other shell out there. This makes
#scripting a whole lot fun for me. 👍