Skip to content

Instantly share code, notes, and snippets.

@mirzalazuardi
Created October 4, 2019 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirzalazuardi/7988b88a0471eadc92a09f08f61a00ac to your computer and use it in GitHub Desktop.
Save mirzalazuardi/7988b88a0471eadc92a09f08f61a00ac to your computer and use it in GitHub Desktop.
pry configuration
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