Created
October 4, 2019 06:46
-
-
Save mirzalazuardi/7988b88a0471eadc92a09f08f61a00ac to your computer and use it in GitHub Desktop.
pry configuration
This file contains hidden or 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
require 'rubygems' | |
Pry.commands.alias_command 'c', 'continue' | |
Pry.commands.alias_command 's', 'step' | |
Pry.commands.alias_command 'n', 'next' | |
Pry.config.editor = "nvim" | |
def pbcopy(input) | |
str = input.to_s | |
IO.popen('pbcopy', 'w') { |f| f << str } | |
str | |
end | |
def pbpaste | |
`pbpaste` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment