Skip to content

Instantly share code, notes, and snippets.

View thomet's full-sized avatar

Thomas Metzmacher thomet

View GitHub Profile
@thomet
thomet / INSTALL.md
Last active September 4, 2018 09:15 — forked from skanev/rubocop.rb
A Rubocop wrapper that checks only added/modified code

Click on the Raw button for the myrubocop.rb and copy the url.

> curl <insert raw url here> > ~/.bin/myrubocop
> chmod +x ~/.bin/myrubocop
# Clone this repo into you $ZHS_CUSTOM/plguins folder and enable it as plugin in your ~/.zshrc
#
# Clone
# > git clone https://gist.github.com/729dbb4216c9461eeb77e7aa7bc3e748.git $ZSH_CUSTOM/plugins/gac_spec
#
# Enable plugin in ~/.zshrc (if you have other plugins enabled, add gac_spec to your list)
# plugins=(gac_spec)
function changed_ruby_files () {
if [ "$1" != "" ]