mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 21:31:19 +08:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									7a9bab1d77
								
							
						
					
					
						commit
						be5bff2e86
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user