Cabal sandbox status in your ZSH prompt

Hi everyone, I made a simple script for my zsh setup that allows me to see whether am I in a cabalized sandbox environment or not. On my machine it looks like this: https://files.app.net/rjphjAG9.png The script itself is here: https://gist.github.com/co-dan/7963200 The result of checking for the sandbox is cached, which---as I've realized only moments ago---is probably unnecessary; it updates only when the user performs a `cabal` command or changes a directory. -- Sincerely yours, -- Daniil Frumin

Looks great, thanks for sharing! I think I'll give it a try.
All best,
Krzysztof Skrzętnicki
On Sat, Dec 14, 2013 at 7:51 PM, Daniil Frumin
Hi everyone, I made a simple script for my zsh setup that allows me to see whether am I in a cabalized sandbox environment or not.
On my machine it looks like this: https://files.app.net/rjphjAG9.png
The script itself is here: https://gist.github.com/co-dan/7963200
The result of checking for the sandbox is cached, which---as I've realized only moments ago---is probably unnecessary; it updates only when the user performs a `cabal` command or changes a directory.
-- Sincerely yours, -- Daniil Frumin _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Really useful, thanks!
On 15 December 2013 09:29, Krzysztof Skrzętnicki
Looks great, thanks for sharing! I think I'll give it a try.
All best, Krzysztof Skrzętnicki
On Sat, Dec 14, 2013 at 7:51 PM, Daniil Frumin
wrote: Hi everyone, I made a simple script for my zsh setup that allows me to see whether am I in a cabalized sandbox environment or not.
On my machine it looks like this: https://files.app.net/rjphjAG9.png
The script itself is here: https://gist.github.com/co-dan/7963200
The result of checking for the sandbox is cached, which---as I've realized only moments ago---is probably unnecessary; it updates only when the user performs a `cabal` command or changes a directory.
-- Sincerely yours, -- Daniil Frumin _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Alfredo Di Napoli
-
Daniil Frumin
-
Krzysztof Skrzętnicki