aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/rc/S06_grml_extension
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2022-09-15 19:27:54 +0200
committerAnton Bobov <anton@bobov.name>2022-09-15 19:30:02 +0200
commitafc7b47498cbbca7a4df45c46eb92b5a8a94cbaf (patch)
treeab103eb64c155ed8b35076a7d939c760808b7d77 /files/.zsh/rc/S06_grml_extension
parent14473dced350f23fe83ec3cd3df06dc9c2637183 (diff)
zsh updates
- add python venv marker to prompt - add aliasses and functions
Diffstat (limited to 'files/.zsh/rc/S06_grml_extension')
-rw-r--r--files/.zsh/rc/S06_grml_extension10
1 files changed, 10 insertions, 0 deletions
diff --git a/files/.zsh/rc/S06_grml_extension b/files/.zsh/rc/S06_grml_extension
new file mode 100644
index 0000000..ba106f0
--- /dev/null
+++ b/files/.zsh/rc/S06_grml_extension
@@ -0,0 +1,10 @@
+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
+
+# vim: ft=zsh :