mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 14:29:08 +00:00 
			
		
		
		
	PR #1793 introduced helper functions for OS detection in some modules. These helpers require a module dependency on the 'helper' module.
		
			
				
	
	
		
			22 lines
		
	
	
		
			430 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			430 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#
 | 
						|
# Enables local Haskell package installation.
 | 
						|
#
 | 
						|
# Authors:
 | 
						|
#   Sebastian Wiesner <lunaryorn@googlemail.com>
 | 
						|
#
 | 
						|
 | 
						|
# Return if requirements are not found.
 | 
						|
if (( ! $+commands[ghc] )); then
 | 
						|
  return 1
 | 
						|
fi
 | 
						|
 | 
						|
# Load dependencies.
 | 
						|
pmodload 'helper'
 | 
						|
 | 
						|
# Prepend Cabal per user directories to PATH.
 | 
						|
if is-darwin && [[  -d $HOME/Library/Haskell ]]; then
 | 
						|
  path=($HOME/Library/Haskell/bin(/N) $path)
 | 
						|
else
 | 
						|
  path=($HOME/.cabal/bin(/N) $path)
 | 
						|
fi
 |