From afc7b47498cbbca7a4df45c46eb92b5a8a94cbaf Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 15 Sep 2022 19:27:54 +0200 Subject: zsh updates - add python venv marker to prompt - add aliasses and functions --- files/.zsh/rc/S06_grml_extension | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 files/.zsh/rc/S06_grml_extension (limited to 'files/.zsh/rc/S06_grml_extension') 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 : -- cgit v1.2.3