|
| 1 | +# Instant prompt - makes prompt appear instantly while zsh loads |
| 2 | +typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet |
| 3 | + |
| 4 | +# Left prompt: directory, git status, prompt symbol |
| 5 | +typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs newline prompt_char) |
| 6 | + |
| 7 | +# Right prompt: status, duration, jobs, k8s context, aws profile, time |
| 8 | +typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time background_jobs kubecontext aws time newline) |
| 9 | + |
| 10 | +# Visual style |
| 11 | +typeset -g POWERLEVEL9K_MODE=powerline |
| 12 | +typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true |
| 13 | +typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0B0' |
| 14 | +typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\uE0B2' |
| 15 | +typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='\uE0B1' |
| 16 | +typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='\uE0B3' |
| 17 | +typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX='%240F─╮' |
| 18 | +typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX='%240F─┤' |
| 19 | +typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX='%240F─╯' |
| 20 | + |
| 21 | +# Prompt char: green on success, red on error |
| 22 | +typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND= |
| 23 | +typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=76 |
| 24 | +typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196 |
| 25 | +typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯' |
| 26 | + |
| 27 | +# Directory |
| 28 | +typeset -g POWERLEVEL9K_DIR_BACKGROUND=4 |
| 29 | +typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 |
| 30 | +typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique |
| 31 | +typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80 |
| 32 | + |
| 33 | +# Git status: green=clean, yellow=modified, red=conflicts |
| 34 | +typeset -g POWERLEVEL9K_VCS_CLEAN_BACKGROUND=2 |
| 35 | +typeset -g POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=3 |
| 36 | +typeset -g POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND=2 |
| 37 | +typeset -g POWERLEVEL9K_VCS_CONFLICTED_BACKGROUND=1 |
| 38 | +typeset -g POWERLEVEL9K_VCS_BACKENDS=(git) |
| 39 | + |
| 40 | +# Command execution time: show if > 3 seconds |
| 41 | +typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3 |
| 42 | +typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0 |
| 43 | +typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=0 |
| 44 | +typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=3 |
| 45 | + |
| 46 | +# Kubernetes context: show only when using k8s commands |
| 47 | +typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|k9s|k' |
| 48 | +typeset -g POWERLEVEL9K_KUBECONTEXT_FOREGROUND=7 |
| 49 | +typeset -g POWERLEVEL9K_KUBECONTEXT_BACKGROUND=5 |
| 50 | + |
| 51 | +# AWS profile: show only when using aws commands |
| 52 | +typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|terraform|cdk|sam' |
| 53 | +typeset -g POWERLEVEL9K_AWS_FOREGROUND=7 |
| 54 | +typeset -g POWERLEVEL9K_AWS_BACKGROUND=208 |
| 55 | + |
| 56 | +# Time: 24-hour format |
| 57 | +typeset -g POWERLEVEL9K_TIME_FOREGROUND=0 |
| 58 | +typeset -g POWERLEVEL9K_TIME_BACKGROUND=7 |
| 59 | +typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M}' |
| 60 | + |
| 61 | +# Status: show only on error |
| 62 | +typeset -g POWERLEVEL9K_STATUS_OK=false |
| 63 | +typeset -g POWERLEVEL9K_STATUS_ERROR=true |
| 64 | +typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=7 |
| 65 | +typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=1 |
| 66 | + |
| 67 | +# Background jobs |
| 68 | +typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false |
| 69 | +typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=6 |
| 70 | +typeset -g POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND=0 |
0 commit comments