pry/pry — pull request #597 by kyrylo (2012-06-15 23:23:02+00:00)
Title: Implement `cd -` command

The `cd -` command allows a user to toggle between last two scopes.

Example:

[1] pry(main)> cd :foo
[2] pry(:foo):1> cd :bar
[3] pry(:bar):2> cd -
^ save :bar and toggle
[4] pry(:foo):1> cd 44
^ we are back at foo
[5] pry(44):2> cd ..
[6] pry(:foo):1> cd ..
[7] pry(main)> cd -
^ save main and toggle
[8] pry(:foo):1>
^ we are back at foo