From 0c58a5397603ceaca58b045e78d8bdaab56cf550 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Sun, 24 Mar 2013 01:23:58 +0100 Subject: [PATCH] skel/.zshrc: Add example for prompt extension for virtualenv --- etc/skel/.zshrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index c540de7..684ee0e 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -40,6 +40,16 @@ fi ## Now, we'll give a few examples of what you might want to use in your ## .zshrc.local file (just copy'n'paste and uncomment it there): +## Prompt theme extension ## + +# Virtualenv support + +#function virtual_env_prompt () { +# REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) } +#} +#grml_theme_add_token virtual-env -f virtual_env_prompt '%F{magenta}' '%f' +#zstyle ':prompt:grml:left:setup:items' rc virtual-env change-root user at host path vcs percent + ## ZLE tweaks ## ## use the vi navigation keys (hjkl) besides cursor keys in menu completion -- 2.1.4