From e057b9490666c7b22fd514e82a2235b81dbacaae Mon Sep 17 00:00:00 2001 From: lickthecheese Date: Wed, 17 Jun 2020 13:58:49 -0400 Subject: [PATCH] fixed boog --- .zshrc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.zshrc b/.zshrc index 854a175..9f3c9d5 100644 --- a/.zshrc +++ b/.zshrc @@ -1757,6 +1757,31 @@ else grml_vcs_info_set_formats coloured fi + +function grml_prompt_setup () { + emulate -L zsh + autoload -Uz vcs_info + # The following autoload is disabled for now, since this setup includes a + # static version of the ‘add-zsh-hook’ function above. It needs to be + # re-enabled as soon as that static definition is removed again. + #autoload -Uz add-zsh-hook + add-zsh-hook precmd prompt_$1_precmd +} + +function prompt_grml_setup () { + grml_prompt_setup grml +} + +function prompt_grml-chroot_setup () { + grml_prompt_setup grml-chroot +} + +function prompt_grml-large_setup () { + grml_prompt_setup grml-large +} + + + # Now for the fun part: The grml prompt themes in `promptsys' mode of operation # This actually defines three prompts: