Created
June 16, 2012 00:02
-
-
Save kyrylo/2939281 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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