Skip to content

Commit 0c58a53

Browse files
committed
skel/.zshrc: Add example for prompt extension for virtualenv
1 parent f366ab2 commit 0c58a53

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

etc/skel/.zshrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ fi
4040
## Now, we'll give a few examples of what you might want to use in your
4141
## .zshrc.local file (just copy'n'paste and uncomment it there):
4242

43+
## Prompt theme extension ##
44+
45+
# Virtualenv support
46+
47+
#function virtual_env_prompt () {
48+
# REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) }
49+
#}
50+
#grml_theme_add_token virtual-env -f virtual_env_prompt '%F{magenta}' '%f'
51+
#zstyle ':prompt:grml:left:setup:items' rc virtual-env change-root user at host path vcs percent
52+
4353
## ZLE tweaks ##
4454

4555
## use the vi navigation keys (hjkl) besides cursor keys in menu completion

0 commit comments

Comments
 (0)