diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-14 17:59:42 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-14 18:06:24 -0600 |
commit | e9b03a7d0bdcaaeb62bc800e265cd3cdb155ec8a (patch) | |
tree | 93c58315da09734cb8055c923e45b71f2eb40e3b /themes/agnoster.zsh-theme | |
parent | 59c66dbfc2b4749c3311550fa605e1e4fcf9496c (diff) | |
download | zsh-e9b03a7d0bdcaaeb62bc800e265cd3cdb155ec8a.tar.gz zsh-e9b03a7d0bdcaaeb62bc800e265cd3cdb155ec8a.tar.bz2 zsh-e9b03a7d0bdcaaeb62bc800e265cd3cdb155ec8a.zip |
My mod
Diffstat (limited to 'themes/agnoster.zsh-theme')
-rw-r--r-- | themes/agnoster.zsh-theme | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme index da1f9b6e6..c6ded38d8 100644 --- a/themes/agnoster.zsh-theme +++ b/themes/agnoster.zsh-theme @@ -190,6 +190,15 @@ prompt_status() { [[ -n "$symbols" ]] && prompt_segment black default "$symbols" } +prompt_cabal_sandbox() { + cabal_files=(*.cabal(N)) + if [ $#cabal_files -gt 0 ]; then + if [ -f cabal.sandbox.config ]; then + prompt_segment cyan black "sandbox" + fi + fi +} + ## Main prompt build_prompt() { RETVAL=$? @@ -198,6 +207,7 @@ build_prompt() { prompt_context prompt_dir prompt_git + prompt_cabal_sandbox prompt_hg prompt_end } |