pry--pry/lib/pry/default_commands
Kyrylo Silin 3e56239d50 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

Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
2012-06-19 16:43:46 +02:00
..
cd.rb Implement `cd -` command 2012-06-19 16:43:46 +02:00
commands.rb Group command-commands into their own set 2012-03-01 17:10:54 -08:00
context.rb Fix whereami with tests, closes #595 2012-06-16 01:25:07 +12:00
easter_eggs.rb moved nyan-cat to eastereggs and made it hidden 2012-04-18 00:20:00 +12:00
editing.rb Revert "Change redundant String#replace..." 2012-06-16 21:59:14 +02:00
find_method.rb improve short description for a few commands 2012-06-02 06:19:10 +12:00
gems.rb better fix... 2012-01-28 19:50:56 -08:00
help.rb tell people how to get more help immediately 2012-03-01 17:10:55 -08:00
hist.rb Fix the superficial slop errors 2012-05-29 20:33:52 -07:00
input_and_output.rb fix amend-line :listing (wrongly listed as -line). Fix gist -o and gist -i 2012-06-16 19:10:35 +12:00
introspection.rb improve short description for a few commands 2012-06-02 06:19:10 +12:00
ls.rb Fix the superficial slop errors 2012-05-29 20:33:52 -07:00
misc.rb Remove "req" command [Fixes #554] 2012-05-28 01:08:46 -07:00
navigating_pry.rb Fix `exit` after previous syntax error in `exit` command. 2012-04-25 17:38:43 -03:00