diff options
-rw-r--r-- | prompt_adam3_setup | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/prompt_adam3_setup b/prompt_adam3_setup index d0b160f..77ed90e 100644 --- a/prompt_adam3_setup +++ b/prompt_adam3_setup @@ -11,6 +11,8 @@ EOF } prompt_adam3_setup () { + + # colors prompt_adam3_color1=${1:-'multi'} prompt_adam3_color2=${2:-'blue'} prompt_adam3_color3=${3:-'cyan'} @@ -45,6 +47,7 @@ prompt_adam3_setup () { base_prompt="%K{$prompt_adam3_color2}%n@%k$base_hostname_prompt " post_prompt="%b%f%k" + # localoptions allows us to use extendedglob here, and not outside this function. setopt localoptions extendedglob base_prompt_no_color="${base_prompt//(%K{[^\\\}]#\}|%k)/}" post_prompt_no_color="${post_prompt//(%K{[^\\\}]#\}|%k)/}" |