(no title)
gregnavis | 3 years ago
function .routes() {
if [[ $# -eq 0 ]]; then
.rails routes
else
.rails routes | grep $@
fi
}
where .rails is another alias (for running bundle exec rails ...). I can then run ".routes webhook" and see all routes containing "webhook".Last but not least, I automated the whole thing with bash-ctx (https://github.com/gregnavis/bash-ctx).
No comments yet.