projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f366ab2
)
skel/.zshrc: Add example for prompt extension for virtualenv
author
Frank Terbeck
<ft@grml.org>
Sun, 24 Mar 2013 00:23:58 +0000
(
01:23
+0100)
committer
Frank Terbeck
<ft@grml.org>
Sun, 24 Mar 2013 00:23:58 +0000
(
01:23
+0100)
etc/skel/.zshrc
patch
|
blob
|
history
diff --git
a/etc/skel/.zshrc
b/etc/skel/.zshrc
index
c540de7
..
684ee0e
100644
(file)
--- 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):
## 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
## ZLE tweaks ##
## use the vi navigation keys (hjkl) besides cursor keys in menu completion