Last active
February 28, 2019 16:42
-
-
Save romkatv/3cd76f77d76deec7ea93a18d3dbf1ad1 to your computer and use it in GitHub Desktop.
prompt_greet trace (master)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+right_prompt_segment:1> local segment_name=prompt_greet | |
+right_prompt_segment:2> local current_index=4 | |
+right_prompt_segment:5> local joined | |
+right_prompt_segment:6> segmentShouldBeJoined 4 2 'status command_execution_time background_jobs greet time custom_rprompt' | |
+segmentShouldBeJoined:1> local current_index=4 | |
+segmentShouldBeJoined:2> local last_segment_index=2 | |
+segmentShouldBeJoined:4> local -a elements | |
+segmentShouldBeJoined:5> elements=( status command_execution_time background_jobs greet time custom_rprompt ) | |
+segmentShouldBeJoined:7> local current_segment=greet | |
+segmentShouldBeJoined:8> local joined=false | |
+segmentShouldBeJoined:9> [[ greet == _joined ]] | |
+segmentShouldBeJoined:36> [[ false == true ]] | |
+segmentShouldBeJoined:39> return 1 | |
+right_prompt_segment:6> joined=false | |
+right_prompt_segment:9> local backgroundColor=green | |
+right_prompt_segment:10> local foregroundColor=black | |
+right_prompt_segment:13> local BACKGROUND_USER_VARIABLE=POWERLEVEL9K_GREET_BACKGROUND | |
+right_prompt_segment:14> local BG_COLOR_MODIFIER='' | |
+right_prompt_segment:15> [[ -n '' ]] | |
+right_prompt_segment:18> local FOREGROUND_USER_VARIABLE=POWERLEVEL9K_GREET_FOREGROUND | |
+right_prompt_segment:19> local FG_COLOR_MODIFIER='' | |
+right_prompt_segment:20> [[ -n '' ]] | |
+right_prompt_segment:23> backgroundColor=+right_prompt_segment:23> getColorCode green | |
+getColorCode:2> [[ green == <-> ]] | |
+getColorCode:8> local colorName=green | |
+getColorCode:10> [[ green == none ]] | |
+getColorCode:12> [[ green == foreground ]] | |
+getColorCode:18> [[ green == background ]] | |
+getColorCode:25> colorName=green | |
+getColorCode:27> colorName=green | |
+getColorCode:29> colorName=green | |
+getColorCode:30> echo -n 002 | |
+right_prompt_segment:23> backgroundColor=002 | |
+right_prompt_segment:24> foregroundColor=+right_prompt_segment:24> getColorCode black | |
+getColorCode:2> [[ black == <-> ]] | |
+getColorCode:8> local colorName=black | |
+getColorCode:10> [[ black == none ]] | |
+getColorCode:12> [[ black == foreground ]] | |
+getColorCode:18> [[ black == background ]] | |
+getColorCode:25> colorName=black | |
+getColorCode:27> colorName=black | |
+getColorCode:29> colorName=black | |
+getColorCode:30> echo -n 000 | |
+right_prompt_segment:24> foregroundColor=000 | |
+right_prompt_segment:26> local background foreground | |
+right_prompt_segment:27> [[ -n 002 ]] | |
+right_prompt_segment:27> background=+right_prompt_segment:27> backgroundColor 002 | |
+backgroundColor:1> getColor 002 | |
+getColor:2> [[ 002 != <-> ]] | |
+getColor:5> echo -n 002 | |
+backgroundColor:1> echo -n '%K{002}' | |
+right_prompt_segment:27> background='%K{002}' | |
+right_prompt_segment:28> [[ -n 000 ]] | |
+right_prompt_segment:28> foreground=+right_prompt_segment:28> foregroundColor 000 | |
+foregroundColor:1> getColor 000 | |
+getColor:2> [[ 000 != <-> ]] | |
+getColor:5> echo -n 000 | |
+foregroundColor:1> echo -n '%F{000}' | |
+right_prompt_segment:28> foreground='%F{000}' | |
+right_prompt_segment:32> [[ 008 != NONE ]] | |
+right_prompt_segment:34> echo -n ' %f' | |
+right_prompt_segment:37> [[ false == false ]] | |
+right_prompt_segment:38> isSameColor 008 002 | |
+isSameColor:1> [[ 008 == NONE || 002 == NONE ]] | |
+isSameColor:5> getColorCode 008 | |
+getColorCode:2> [[ 008 == <-> ]] | |
+getColorCode:4> echo -n 008 | |
+getColorCode:5> return | |
+isSameColor:5> local color1=008 | |
+isSameColor:6> getColorCode 002 | |
+getColorCode:2> [[ 002 == <-> ]] | |
+getColorCode:4> echo -n 002 | |
+getColorCode:5> return | |
+isSameColor:6> local color2=002 | |
+isSameColor:8> return 1 | |
+right_prompt_segment:48> foregroundColor 002 | |
+foregroundColor:1> getColor 002 | |
+getColor:2> [[ 002 != <-> ]] | |
+getColor:5> echo -n 002 | |
+foregroundColor:1> echo -n '%F{002}' | |
+right_prompt_segment:48> print_icon RIGHT_SEGMENT_SEPARATOR | |
+print_icon:1> local icon_name=RIGHT_SEGMENT_SEPARATOR | |
+print_icon:2> local ICON_USER_VARIABLE=POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR | |
+print_icon:3> defined POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR | |
+defined:1> [[ ! -z '' ]] | |
+print_icon:6> echo -n < | |
+right_prompt_segment:48> echo -n '%F{002}<%f' | |
+right_prompt_segment:52> local visual_identifier | |
+right_prompt_segment:53> [[ -n LINUX_ICON ]] | |
+right_prompt_segment:54> visual_identifier=+right_prompt_segment:54> print_icon LINUX_ICON | |
+print_icon:1> local icon_name=LINUX_ICON | |
+print_icon:2> local ICON_USER_VARIABLE=POWERLEVEL9K_LINUX_ICON | |
+print_icon:3> defined POWERLEVEL9K_LINUX_ICON | |
+defined:1> [[ ! -z '' ]] | |
+print_icon:6> echo -n @ | |
+right_prompt_segment:54> visual_identifier=@ | |
+right_prompt_segment:55> [[ -n @ ]] | |
+right_prompt_segment:59> [[ -n hi ]] | |
+right_prompt_segment:59> visual_identifier=' @' | |
+right_prompt_segment:61> local visual_identifier_color_variable=POWERLEVEL9K_GREET_VISUAL_IDENTIFIER_COLOR | |
+right_prompt_segment:62> set_default POWERLEVEL9K_GREET_VISUAL_IDENTIFIER_COLOR 000 | |
+set_default:1> local varname=POWERLEVEL9K_GREET_VISUAL_IDENTIFIER_COLOR | |
+set_default:2> local default_value=000 | |
+set_default:4> defined POWERLEVEL9K_GREET_VISUAL_IDENTIFIER_COLOR | |
+defined:1> [[ ! -z '' ]] | |
+set_default:4> typeset -g 'POWERLEVEL9K_GREET_VISUAL_IDENTIFIER_COLOR=000' | |
+right_prompt_segment:63> visual_identifier=+right_prompt_segment:63> foregroundColor 000 | |
+foregroundColor:1> getColor 000 | |
+getColor:2> [[ 000 != <-> ]] | |
+getColor:5> echo -n 000 | |
+foregroundColor:1> echo -n '%F{000}' | |
+right_prompt_segment:63> visual_identifier='%F{000} @' | |
+right_prompt_segment:67> echo -n '%K{002}%F{000}' | |
+right_prompt_segment:70> [[ false == false ]] | |
+right_prompt_segment:70> echo -n ' ' | |
+right_prompt_segment:73> [[ -n hi ]] | |
+right_prompt_segment:73> echo -n hi | |
+right_prompt_segment:75> echo -n '%F{000} @' | |
+right_prompt_segment:77> CURRENT_RIGHT_BG=002 | |
+right_prompt_segment:78> last_right_element_index=4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment