I want to create an alias that will print out the current working directory sub name.
I have this:
BASENAME=${PWD##*/}
alias wai="echo $BASENAME"
This outputs the directory subname of the directory .bashrc is stored in. I want it to be the current working directory.
Sorry if this is simple, I'm new to bash.