add pryrc

This commit is contained in:
Tyrel Souza 2019-03-22 15:46:59 -04:00
parent 0f4eb3be78
commit 971d9b12f9
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0
2 changed files with 12 additions and 0 deletions

View File

@ -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

10
pryrc Normal file
View File

@ -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