Get current folder in bash

using the ${PWD} variable and some regex

echo ${PWD##*/}