$ kill $(lsof -t -i :3500)
alias godev='cd ~/workspace/homebase1'
alias yarn-hot-assets='godev && cd client && yarn run hot-assets'
alias yarn-test-server='godev && cd client && yarn run test-server'
alias start-server='godev && bundle exec rails s'
alias start-sidekick='bundle exec sidekiq'
alias start-all='yarn-hot-assets & yarn-test-server & start-sidekick & start-server'
alias branch-name='git rev-parse --abbrev-ref HEAD'
git_squash() {
git fetch
git rebase develop
git rebase -i HEAD~"$1"
git push origin +$(branch-name)
}
Add to $HOME/.pry.rc
:
if defined?(PryDebugger) || 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
Pry.config.collision_warning = true
Pry.config.pager = false
Pry::Commands.command(/^$/, "repeat last command") do
_pry_.input = StringIO.new(Pry.history.to_a.last)
end
be cap [env] services:restart
add:
$HOME/.pryrc