diff options
author | Marc Cornellà <marc.cornella@live.com> | 2018-06-12 19:54:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-12 19:54:47 +0200 |
commit | be5bff2e86872c00536191265aa9fdef225af100 (patch) | |
tree | 2e6bada63b13b54c97ab9ad39204e1bec587b2d2 /plugins/bundler | |
parent | 7a9bab1d77e2c22c331ce98a7245d0ba5d348353 (diff) | |
download | zsh-be5bff2e86872c00536191265aa9fdef225af100.tar.gz zsh-be5bff2e86872c00536191265aa9fdef225af100.tar.bz2 zsh-be5bff2e86872c00536191265aa9fdef225af100.zip |
Allow FreeBSD to correctly detect number of CPUs
Use the same scheme as Darwin - sysctl instead of nproc, which doesn't exist in FreeBSD
Closes #2545
Co-authored-by: Daniel Bye <dbye@users.noreply.github.com>
Diffstat (limited to 'plugins/bundler')
-rw-r--r-- | plugins/bundler/bundler.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh index 6b10b78d1..ea199d09a 100644 --- a/plugins/bundler/bundler.plugin.zsh +++ b/plugins/bundler/bundler.plugin.zsh @@ -57,7 +57,7 @@ bundle_install() { if _bundler-installed && _within-bundled-project; then local bundler_version=`bundle version | cut -d' ' -f3` if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then - if [[ "$OSTYPE" = darwin* ]] + if [[ "$OSTYPE" = (darwin|freebsd)* ]] then local cores_num="$(sysctl -n hw.ncpu)" else |