Skip to content

Instantly share code, notes, and snippets.

View zimurgh's full-sized avatar

Michael Carpenter zimurgh

  • Philadelphia, PA
View GitHub Profile
@zimurgh
zimurgh / haskell-prompt-info.zsh
Last active August 29, 2015 14:27 — forked from epsilonhalbe/haskell-prompt-info.zsh
haskell-prompt-info (zsh)
function haskell_info() {
cabal_files=(*.cabal(N))
if [ $#cabal_files -gt 0 ]; then
if [ -f cabal.sandbox.config ]; then
cabal_sandbox_info
elif [ -f stack.yaml ]; then
stack_info
else
echo "%{$fg[red]%}no stack/sandbox%{$reset_color%}"
fi