You can run dirs -v to get the list, and do cd +(num) to go there.
So:
FreeBSD <jubei/pts/2> (219 /var): dirs -v 0 /var 1 /usr/local 2 ~ FreeBSD <jubei/pts/2> (220 /var): cd +1 /usr/local FreeBSD <jubei/pts/2> (221 /usr/local): _
You can run dirs -v to get the list, and do cd +(num) to go there.
So: