From a37525a89130deef103d83e49b26751f9e3f54c1 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 20 May 2016 10:42:59 +0200 Subject: just adding more comments --- prompt_adam3_setup | 3 +++ 1 file changed, 3 insertions(+) (limited to 'prompt_adam3_setup') 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)/}" -- cgit v1.2.3