powerlevel10k
powerlevel10k copied to clipboard
`haskell_stack` is slow and has unwanted side effects
I'd say the haskell_stack gimmick, while nicely displaying the ghc version if I am in a directory with stack.yaml, does a bit too much.
- It is slow. When I change to a directory that has a
stack.yaml, I am waiting a couple of seconds before my prompt appears. The reason is thatstackis slow, it does all kind of stuff before it gives the desired answer. - One of these things
stackis doing creating a.cabalfile from apackage.yamlfile (using its internal version ofhpack). This seems a bit too much. I do not want my shell prompt to create new files. I just want it to display information.
So my advice would be to switch this feature off until it gets fixed.
https://github.com/romkatv/powerlevel10k/blob/36f3045d69d1ba402db09d09eb12b42eebe0fa3b/internal/p10k.zsh#L5700-L5714
Upstream issue:
- https://github.com/commercialhaskell/stack/issues/6780