Skip to content

Instantly share code, notes, and snippets.

@kyrylo
Created June 16, 2012 00:02
Show Gist options
  • Save kyrylo/2939281 to your computer and use it in GitHub Desktop.
Save kyrylo/2939281 to your computer and use it in GitHub Desktop.
% pry
[1] pry(main)> cd :foo
# Save 'main' as old_binding; append == false (the next call of `cd -` should not append old_binding to binding_stack)
[2] pry(:foo):1> cd -
# Pull out ':foo' and save it as old_binding; append == true (the next call of `cd -` should append old_binding to binding_stack)
[3] pry(main)> cd -
# All over again...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment