From: Frank Terbeck Date: Sun, 24 Mar 2013 00:23:58 +0000 (+0100) Subject: skel/.zshrc: Add example for prompt extension for virtualenv X-Git-Tag: v0.8.0~5 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=0c58a5397603ceaca58b045e78d8bdaab56cf550 skel/.zshrc: Add example for prompt extension for virtualenv --- 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