Logo
Explore Help
Sign In
admin/brew
1
0
Fork 0
You've already forked brew
Code Issues Packages Projects Releases 6 Wiki Activity
brew/Library/Homebrew/shims/gems/rubocop

4 lines
130 B
Plaintext
Raw Permalink Normal View History

rubocop: add shim and command. Add a shim and a command that can be used to easily add a single directory to your `PATH` (`Library/Homebrew/shims/gems`) and have it automatically install, configure and run `rubocop` so you can use it for in-editor integrations.
2021-01-06 15:21:09 +00:00
#!/bin/bash
shims/gems/rubocop: handle when `brew` isn't in PATH. Instead, figure out where `$HOMEBREW_PREFIX/bin` should be and use that.
2022-08-30 12:53:42 +00:00
HOMEBREW_PREFIX_BIN="$(cd "$(dirname "$0")"/../../../../ && pwd)/bin/"
exec "${HOMEBREW_PREFIX_BIN}"brew rubocop "$@"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 2085ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API