diff options
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r-- | powerlevel9k.zsh-theme | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index a939d861..55056bf1 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -34,17 +34,17 @@ VCS_STAGED_ICON='✚' local DEFAULT_COLOR DEFAULT_COLOR_INVERTED DEFAULT_COLOR_DARK if [[ $POWERLEVEL9K_COLOR_SCHEME == "light" ]]; then - DEFAULT_COLOR=white - DEFAULT_COLOR_INVERTED=black - DEFAULT_COLOR_DARK="252" + DEFAULT_COLOR=white + DEFAULT_COLOR_INVERTED=black + DEFAULT_COLOR_DARK="252" else - DEFAULT_COLOR=black - DEFAULT_COLOR_INVERTED=white - DEFAULT_COLOR_DARK="236" + DEFAULT_COLOR=black + DEFAULT_COLOR_INVERTED=white + DEFAULT_COLOR_DARK="236" fi ################################################################ -# vcs_info settings for git +# VCS Information Settings ################################################################ setopt prompt_subst @@ -218,7 +218,7 @@ prompt_dir() { # Virtualenv: current working virtualenv # More information on virtualenv (Python): -# https://virtualenv.pypa.io/en/latest/virtualenv.html +# https://virtualenv.pypa.io/en/latest/ prompt_virtualenv() { local virtualenv_path="$VIRTUAL_ENV" if [[ -n $virtualenv_path && -n $VIRTUAL_ENV_DISABLE_PROMPT ]]; then @@ -285,6 +285,15 @@ prompt_rbenv() { fi } +# AWS Profile +prompt_aws() { + local aws_profile=$AWS_DEFAULT_PROFILE + if [[ -n $aws_profile ]]; + then + $1_prompt_segment red white "AWS: $aws_profile" + fi +} + # Main prompt build_left_prompt() { if (( ${#POWERLEVEL9K_LEFT_PROMPT_ELEMENTS} == 0 )); then @@ -319,5 +328,10 @@ precmd() { vcs_info_hookadd set-message vcs-detect-changes } -PROMPT='%{%f%b%k%}$(build_left_prompt) ' +if [ $POWERLEVEL9K_PROMPT_ON_NEWLINE ] ; then + PROMPT='╭─%{%f%b%k%}$(build_left_prompt) +╰─ ' +else + PROMPT='%{%f%b%k%}$(build_left_prompt) ' +fi RPROMPT='%{%f%b%k%}$(build_right_prompt)%{$reset_color%}' |