The Basics

Determine which shell you are running

echo $SHELL

set the color of the prompt

PROMPT='%F{green}%n@%m %F{blue}%~ %f$ '

Linux

List ports used by a specific process

lsof -a -p 1989165 -i

List working directory of a specific process

lsof -a -p -d cwd