dirs shows the stack of directories. dirs -v shows them vertically with their indexes. Recommend aliasing dirs to dirs -v.
pwd is always transient at the top of the stack.
Reference directories with ~[index] where [index] is the directory stack index.