From 971d9b12f9fdc159aa9337beabd6099f4d93f76a Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 22 Mar 2019 15:46:59 -0400 Subject: [PATCH] add pryrc --- INSTALL.sh | 2 ++ pryrc | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 pryrc diff --git a/INSTALL.sh b/INSTALL.sh index d391804..03ba3df 100755 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -30,6 +30,7 @@ rm -rf ~/.zshenv rm -rf ~/.zshrc rm -rf ~/.tmux rm -rf ~/.tmux.conf +rm -rf ~/.pryrc # set Symlinks to configs ln -s $(pwd)/bash_aliases ~/.bash_aliases @@ -46,6 +47,7 @@ ln -s $(pwd)/zprofile.local ~/.zprofile.local ln -s $(pwd)/zpreztorc ~/.zpreztorc ln -s $(pwd)/tmux ~/.tmux ln -s $(pwd)/tmux.conf ~/.tmux.conf +ln -s $(pwd)/pryrc ~/.pryrc ln -s $HOME/.zprezto/runcoms/zlogin ~/.zlogin ln -s $HOME/.zprezto/runcoms/zlogout ~/.zlogout diff --git a/pryrc b/pryrc new file mode 100644 index 0000000..89377d9 --- /dev/null +++ b/pryrc @@ -0,0 +1,10 @@ +if defined?(PryByebug) + Pry.commands.alias_command 'c', 'continue' + Pry.commands.alias_command 's', 'step' + Pry.commands.alias_command 'n', 'next' + Pry.commands.alias_command 'f', 'finish' +end +# Hit Enter to repeat last command +Pry::Commands.command /^$/, "repeat last command" do + _pry_.run_command Pry.history.to_a.last +end