skel/.zshrc: Add example for prompt extension for virtualenv
authorFrank Terbeck <ft@grml.org>
Sun, 24 Mar 2013 00:23:58 +0000 (01:23 +0100)
committerFrank Terbeck <ft@grml.org>
Sun, 24 Mar 2013 00:23:58 +0000 (01:23 +0100)
etc/skel/.zshrc

index c540de7..684ee0e 100644 (file)
@@ -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