**Bring executables into better shellcheck compliance** While evaluating linting and testing options for our shell configuration, a run of Shellcheck against our executables turned up some places where we could use more consistent syntax across our executables, such as always using a shebang or quoting `$HOME` when we build up a larger directory. **Update syntax for zsh functions and completions** A few changes found while linting zsh configs with shellcheck: * thoughtbot's [style guide] [guide] calls for `$(..)` over backticks when capturing command output * use `-gt` to test array length in arguments [guide]: https://github.com/thoughtbot/guides/tree/master/best-practices
3 lines
80 B
Text
3 lines
80 B
Text
#compdef rspec
|
|
|
|
compadd -P spec/ $(ls spec/**/*_spec.rb | sed -E "s/spec\///g")
|