Permalink
Browse files

copy command to copy a line to the clipboard when using Pry

  • Loading branch information...
1 parent 08a5c9e commit 757929ac80d32371fde754ace7881beef4ed1d43 @lucashungaro committed Nov 30, 2012
Showing with 9 additions and 1 deletion.
  1. +2 −1 bash_profile
  2. +3 −0 bashrc
  3. +4 −0 pryrc
View
@@ -34,7 +34,8 @@ alias migrate="be rake db:migrate db:test:prepare"
alias remigrate="be rake db:migrate && rake db:migrate:redo && rake db:schema:dump db:test:prepare"
alias rout="be rake routes"
-alias dep="be cap deploy"
+alias dep="be rake assets:precompile; gadd ; git commit -m 'Assets precompilation' ; git push production"
+alias dep_staging="be rake assets:precompile; gadd ; git commit -m 'Assets precompilation' ; git push staging"
# Bundler
alias b="bundle"
View
3 bashrc
@@ -1 +1,4 @@
source ~/.bash_profile
+
+### Added by the Heroku Toolbelt
+export PATH="/usr/local/heroku/bin:$PATH"
View
4 pryrc 100644 → 100755
@@ -1,3 +1,6 @@
+# Copy line to clipboard
+def copy(*args) IO.popen('pbcopy', 'r+') { |clipboard| clipboard.puts args.map(&:inspect) }; end
+
Pry.config.editor = "mate -w"
Pry.config.prompt = proc do |obj, level, _|
@@ -17,6 +20,7 @@ if Pry.commands.find {|command| command[0] == "continue"}
Pry.commands.alias_command "s", "step"
Pry.commands.alias_command "n", "next"
Pry.commands.alias_command "f", "finish"
+ Pry.commands.alias_command "q", "exit"
end
if defined?(Rails)

0 comments on commit 757929a

Please sign in to comment.