mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-16 17:51:12 +00:00
e5de305157
man dynamically searches for man pages based on $PATH.
19 lines
400 B
Bash
19 lines
400 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
|
|
|
|
# Prepend Cabal per user directories to PATH.
|
|
if [[ "$OSTYPE" == darwin* && -d $HOME/Library/Haskell ]]; then
|
|
path=($HOME/Library/Haskell/bin(/N) $path)
|
|
else
|
|
path=($HOME/.cabal/bin(/N) $path)
|
|
fi
|