diff --git a/zsh/.config/zsh/aliases b/zsh/.config/zsh/aliases index b828a07..342de8e 100644 --- a/zsh/.config/zsh/aliases +++ b/zsh/.config/zsh/aliases @@ -9,6 +9,7 @@ alias awsp="aws-profile" alias b="bundle" alias be="bundle exec" alias bea="run-rails" +alias bel="bundle exec rubocop" alias ber="bundle exec rake" alias bet="test-rails" alias c="clear" diff --git a/zsh/.config/zsh/functions b/zsh/.config/zsh/functions index ce039e9..8ac8d8f 100644 --- a/zsh/.config/zsh/functions +++ b/zsh/.config/zsh/functions @@ -1,3 +1,5 @@ +# vim: set filetype=bash : + function advanced-git-checkout { if [ $# -eq 0 ]; then git branch \ @@ -88,6 +90,14 @@ function install-ruby { fi } +function lint-ruby { + if [ -f "aet-rubocop.yml" ]; then + bundle exec rubocop --config aet-rubocop.yml $@ + else + bundle exec rubocop $@ + fi +} + function password-generator { if [ -x "$(command -v openssl)" ]; then password=$(