diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2015-07-11 06:39:56 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2015-07-11 06:39:56 +0300 |
commit | 767d4c75b0e8fd6b3fdf2027a936636c533d81e9 (patch) | |
tree | b2b17c0b3e4c9a8b49313bdafce83a36765561a9 /powerlevel9k.zsh-theme | |
parent | c9e6cc6cd053f7b68b309b91a4387eb019876d65 (diff) | |
parent | 3a857c276d28503d293634b0a1d1ce1eb3b15ff0 (diff) |
Merge branch 'dritter/developers_guide'
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r-- | powerlevel9k.zsh-theme | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 60386eb2..ddfdc023 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -244,8 +244,13 @@ fi ################################################################ # Begin a left prompt segment -# Takes two arguments, background and foreground. Both can be omitted, -# rendering default background/foreground. +# Takes four arguments: +# * $1: Name of the function that was orginally invoked (mandatory). +# Necessary, to make the dynamic color-overwrite mechanism work. +# * $2: Background color +# * $3: Foreground color +# * $4: The segment content +# The latter three can be omitted, left_prompt_segment() { # Overwrite given background-color by user defined variable for this segment. # We get as first Parameter the function name, which called this function. @@ -288,9 +293,13 @@ left_prompt_end() { } # Begin a right prompt segment -# Takes two arguments, background and foreground. Both can be omitted, -# rendering default background/foreground. No ending for the right prompt -# segment is needed (unlike the left prompt, above). +# Takes four arguments: +# * $1: Name of the function that was orginally invoked (mandatory). +# Necessary, to make the dynamic color-overwrite mechanism work. +# * $2: Background color +# * $3: Foreground color +# * $4: The segment content +# No ending for the right prompt segment is needed (unlike the left prompt, above). right_prompt_segment() { # Overwrite given background-color by user defined variable for this segment. local BACKGROUND_USER_VARIABLE=POWERLEVEL9K_${(U)1#prompt_}_BACKGROUND |