1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-10-14 15:49:09 +00:00

Add haskell module

This module provides support for per user haskell packages by prepending
the per user directories to PATH/MANPATH.
This commit is contained in:
Sebastian Wiesner
2012-05-12 12:58:47 +02:00
committed by Sorin Ionescu
parent 84a6c19c2b
commit 235cef787e
2 changed files with 44 additions and 0 deletions

16
modules/haskell/init.zsh Normal file
View File

@@ -0,0 +1,16 @@
#
# Enables local Haskell package installation.
#
# Authors:
# Sebastian Wiesner <lunaryorn@googlemail.com>
#
# Prepend Cabal per user directories to PATH/MANPATH.
if [[ "$OSTYPE" == darwin* ]]; then
path=($HOME/Library/Haskell/bin(/N) $path)
manpath=($HOME/Library/Haskell/man(/N) $manpath)
else
path=($HOME/.cabal/bin(/N) $path)
manpath=($HOME/.cabal/man(/N) $path)
fi