<s> def add_username_segment ( powerline ) : <EOL> import os <EOL> if powerline . args . shell == '<STR_LIT>' : <EOL> user_prompt = '<STR_LIT>' <EOL> elif powerline . args . shell == '<STR_LIT>' : <EOL> user_prompt = '<STR_LIT>' <EOL> else : <EOL> user_prompt = '<STR_LIT>' % os . getenv ( '<STR_LIT>' ) <EOL> if os . getenv ( '<STR_LIT>' ) == '<STR_LIT:root>' : <EOL> bgcolor = Color . USERNAME_ROOT_BG <EOL> else : <EOL> bgcolor = Color . USERNAME_BG <EOL> powerline . append ( user_prompt , Color . USERNAME_FG , bgcolor ) </s>
