Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pry::Commands.create_command "ll" do
- description "Loads a file. If no arg is passed, will reload the last file"
- def process
- if (args.length == 0)
- if $PRY_MY_LAST_LL.nil?
- output.puts "No last file, aborting"
- else
- load $PRY_MY_LAST_LL
- end
- else
- $PRY_MY_LAST_LL = args.join(" ")
- load $PRY_MY_LAST_LL
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement