ps -p $$  
  PID TTY           TIME CMD
76146 ttys002    0:54.05 -bash

echo $SHELL  
/bin/bash

The first gets the PID and command of the current shell, the second is an environment variable that should be set in most shells.