diff options
author | Dennis Eriksen <dennis@eriksen.im> | 2016-05-20 10:42:59 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis@eriksen.im> | 2016-05-20 10:42:59 +0200 |
commit | a37525a89130deef103d83e49b26751f9e3f54c1 (patch) | |
tree | 503527619dbdd9572ef033f237c3ca64bafe86d4 /prompt_adam3_setup | |
parent | just adding a comment (diff) | |
download | adam3-a37525a89130deef103d83e49b26751f9e3f54c1.tar.gz |
just adding more comments
Diffstat (limited to 'prompt_adam3_setup')
-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)/}" |