From ProgsRS, 1 Week ago, written in Bash.
Embed
  1. # Generated by Powerlevel10k configuration wizard on 2021-04-03 at 19:09 EEST.
  2. # Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 32822.
  3. # Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode,
  4. # 24h time, angled separators, sharp heads, flat tails, 1 line, compact, many icons,
  5. # concise, instant_prompt=verbose.
  6. # Type `p10k configure` to generate another config.
  7. #
  8. # Config for Powerlevel10k with powerline prompt style with colorful background.
  9. # Type `p10k configure` to generate your own config based on it.
  10. #
  11. # Tip: Looking for a nice color? Here's a one-liner to print colormap.
  12. #
  13. #   for i in {0..255}; do print -Pn "%K{$i}  %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done
  14.  
  15. # Temporarily change options.
  16. 'builtin' 'local' '-a' 'p10k_config_opts'
  17. [[ ! -o 'aliases'         ]] || p10k_config_opts+=('aliases')
  18. [[ ! -o 'sh_glob'         ]] || p10k_config_opts+=('sh_glob')
  19. [[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
  20. 'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
  21.  
  22. () {
  23.   emulate -L zsh -o extended_glob
  24.  
  25.   # Unset all configuration options. This allows you to apply configuration changes without
  26.   # restarting zsh. Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`.
  27.   unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR'
  28.  
  29.   # Zsh >= 5.1 is required.
  30.   autoload -Uz is-at-least && is-at-least 5.1 || return
  31.  
  32.   # The list of segments shown on the left. Fill it with the most important segments.
  33.   typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
  34.     os_icon                 # os identifier
  35.     dir                     # current directory
  36.     vcs                     # git status
  37.     # prompt_char           # prompt symbol
  38.   )
  39.  
  40.   # The list of segments shown on the right. Fill it with less important segments.
  41.   # Right prompt on the last prompt line (where you are typing your commands) gets
  42.   # automatically hidden when the input line reaches it. Right prompt above the
  43.   # last prompt line gets hidden if it would overlap with left prompt.
  44.   typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
  45.     status                  # exit code of the last command
  46.     command_execution_time  # duration of the last command
  47.     background_jobs         # presence of background jobs
  48.     direnv                  # direnv status (https://direnv.net/)
  49.     asdf                    # asdf version manager (https://github.com/asdf-vm/asdf)
  50.     virtualenv              # python virtual environment (https://docs.python.org/3/library/venv.html)
  51.     anaconda                # conda environment (https://conda.io/)
  52.     pyenv                   # python environment (https://github.com/pyenv/pyenv)
  53.     goenv                   # go environment (https://github.com/syndbg/goenv)
  54.     nodenv                  # node.js version from nodenv (https://github.com/nodenv/nodenv)
  55.     nvm                     # node.js version from nvm (https://github.com/nvm-sh/nvm)
  56.     nodeenv                 # node.js environment (https://github.com/ekalinin/nodeenv)
  57.     # node_version          # node.js version
  58.     # go_version            # go version (https://golang.org)
  59.     # rust_version          # rustc version (https://www.rust-lang.org)
  60.     # dotnet_version        # .NET version (https://dotnet.microsoft.com)
  61.     # php_version           # php version (https://www.php.net/)
  62.     # laravel_version       # laravel php framework version (https://laravel.com/)
  63.     # java_version          # java version (https://www.java.com/)
  64.     # package               # name@version from package.json (https://docs.npmjs.com/files/package.json)
  65.     rbenv                   # ruby version from rbenv (https://github.com/rbenv/rbenv)
  66.     rvm                     # ruby version from rvm (https://rvm.io)
  67.     fvm                     # flutter version management (https://github.com/leoafarias/fvm)
  68.     luaenv                  # lua version from luaenv (https://github.com/cehoffman/luaenv)
  69.     jenv                    # java version from jenv (https://github.com/jenv/jenv)
  70.     plenv                   # perl version from plenv (https://github.com/tokuhirom/plenv)
  71.     phpenv                  # php version from phpenv (https://github.com/phpenv/phpenv)
  72.     scalaenv                # scala version from scalaenv (https://github.com/scalaenv/scalaenv)
  73.     haskell_stack           # haskell version from stack (https://haskellstack.org/)
  74.     kubecontext             # current kubernetes context (https://kubernetes.io/)
  75.     terraform               # terraform workspace (https://www.terraform.io)
  76.     aws                     # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
  77.     aws_eb_env              # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/)
  78.     azure                   # azure account name (https://docs.microsoft.com/en-us/cli/azure)
  79.     gcloud                  # google cloud cli account and project (https://cloud.google.com/)
  80.     google_app_cred         # google application credentials (https://cloud.google.com/docs/authentication/production)
  81.     context                 # user@hostname
  82.     nordvpn                 # nordvpn connection status, linux only (https://nordvpn.com/)
  83.     ranger                  # ranger shell (https://github.com/ranger/ranger)
  84.     nnn                     # nnn shell (https://github.com/jarun/nnn)
  85.     vim_shell               # vim shell indicator (:sh)
  86.     midnight_commander      # midnight commander shell (https://midnight-commander.org/)
  87.     nix_shell               # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html)
  88.     vi_mode                 # vi mode (you don't need this if you've enabled prompt_char)
  89.     # vpn_ip                # virtual private network indicator
  90.     # load                  # CPU load
  91.     # disk_usage            # disk usage
  92.     # ram                   # free RAM
  93.     # swap                  # used swap
  94.     todo                    # todo items (https://github.com/todotxt/todo.txt-cli)
  95.     timewarrior             # timewarrior tracking status (https://timewarrior.net/)
  96.     taskwarrior             # taskwarrior task count (https://taskwarrior.org/)
  97.     time                    # current time
  98.     # ip                    # ip address and bandwidth usage for a specified network interface
  99.     # public_ip             # public IP address
  100.     # proxy                 # system-wide http/https/ftp proxy
  101.     # battery               # internal battery
  102.     # wifi                  # wifi speed
  103.     # example               # example user-defined segment (see prompt_example function below)
  104.   )
  105.  
  106.   # Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
  107.   typeset -g POWERLEVEL9K_MODE=nerdfont-complete
  108.   # When set to `moderate`, some icons will have an extra space after them. This is meant to avoid
  109.   # icon overlap when using non-monospace fonts. When set to `none`, spaces are not added.
  110.   typeset -g POWERLEVEL9K_ICON_PADDING=none
  111.  
  112.   # When set to true, icons appear before content on both sides of the prompt. When set
  113.   # to false, icons go after content. If empty or not set, icons go before content in the left
  114.   # prompt and after content in the right prompt.
  115.   #
  116.   # You can also override it for a specific segment:
  117.   #
  118.   #   POWERLEVEL9K_STATUS_ICON_BEFORE_CONTENT=false
  119.   #
  120.   # Or for a specific segment in specific state:
  121.   #
  122.   #   POWERLEVEL9K_DIR_NOT_WRITABLE_ICON_BEFORE_CONTENT=false
  123.   typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT=
  124.  
  125.   # Add an empty line before each prompt.
  126.   typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
  127.  
  128.   # Connect left prompt lines with these symbols. You'll probably want to use the same color
  129.   # as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND below.
  130.   typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%242F╭─'
  131.   typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX='%242F├─'
  132.   typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%242F╰─'
  133.   # Connect right prompt lines with these symbols.
  134.   typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX='%242F─╮'
  135.   typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX='%242F─┤'
  136.   typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX='%242F─╯'
  137.  
  138.   # Filler between left and right prompt on the first prompt line. You can set it to ' ', '·' or
  139.   # '─'. The last two make it easier to see the alignment between left and right prompt and to
  140.   # separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
  141.   # for more compact prompt if using using this option.
  142.   typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' '
  143.   typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND=
  144.   typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND=
  145.   if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then
  146.     # The color of the filler. You'll probably want to match the color of POWERLEVEL9K_MULTILINE
  147.     # ornaments defined above.
  148.     typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=242
  149.     # Start filler from the edge of the screen if there are no left segments on the first line.
  150.     typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}'
  151.     # End filler on the edge of the screen if there are no right segments on the first line.
  152.     typeset -g POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}'
  153.   fi
  154.  
  155.   # Separator between same-color segments on the left.
  156.   typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='\uE0B1'
  157.   # Separator between same-color segments on the right.
  158.   typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='\uE0B3'
  159.   # Separator between different-color segments on the left.
  160.   typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0B0'
  161.   # Separator between different-color segments on the right.
  162.   typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\uE0B2'
  163.   # The right end of left prompt.
  164.   typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B0'
  165.   # The left end of right prompt.
  166.   typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0B2'
  167.   # The left end of left prompt.
  168.   typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=''
  169.   # The right end of right prompt.
  170.   typeset -g POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL=''
  171.   # Left prompt terminator for lines without any segments.
  172.   typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
  173.  
  174.   #################################[ os_icon: os identifier ]##################################
  175.   # OS identifier color.
  176.   typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=38
  177.   typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=15
  178.   # Custom icon.
  179.   typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION=$'\uF31D'
  180.  
  181.   ################################[ prompt_char: prompt symbol ]################################
  182.   # Transparent background.
  183.   typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND=
  184.   # Green prompt symbol if the last command succeeded.
  185.   typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=76
  186.   # Red prompt symbol if the last command failed.
  187.   typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196
  188.   # Default prompt symbol.
  189.   typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯'
  190.   # Prompt symbol in command vi mode.
  191.   typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮'
  192.   # Prompt symbol in visual vi mode.
  193.   typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='V'
  194.   # Prompt symbol in overwrite vi mode.
  195.   typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='▶'
  196.   typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true
  197.   # No line terminator if prompt_char is the last segment.
  198.   typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
  199.   # No line introducer if prompt_char is the first segment.
  200.   typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=
  201.   # No surrounding whitespace.
  202.   typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_{LEFT,RIGHT}_WHITESPACE=
  203.  
  204.   ##################################[ dir: current directory ]##################################
  205.   # Current directory background color.
  206.   typeset -g POWERLEVEL9K_DIR_BACKGROUND=38
  207.   # Default current directory foreground color.
  208.   typeset -g POWERLEVEL9K_DIR_FOREGROUND=15
  209.   # If directory is too long, shorten some of its segments to the shortest possible unique
  210.   # prefix. The shortened directory can be tab-completed to the original.
  211.   typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
  212.   # Replace removed segment suffixes with this symbol.
  213.   typeset -g POWERLEVEL9K_SHORTEN_DELIMITER=
  214.   # Color of the shortened directory segments.
  215.   typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=250
  216.   # Color of the anchor directory segments. Anchor segments are never shortened. The first
  217.   # segment is always an anchor.
  218.   typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=15
  219.   # Display anchor directory segments in bold.
  220.   typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true
  221.   # Don't shorten directories that contain any of these files. They are anchors.
  222.   local anchor_files=(
  223.     .bzr
  224.     .citc
  225.     .git
  226.     .hg
  227.     .node-version
  228.     .python-version
  229.     .go-version
  230.     .ruby-version
  231.     .lua-version
  232.     .java-version
  233.     .perl-version
  234.     .php-version
  235.     .tool-version
  236.     .shorten_folder_marker
  237.     .svn
  238.     .terraform
  239.     CVS
  240.     Cargo.toml
  241.     composer.json
  242.     go.mod
  243.     package.json
  244.     stack.yaml
  245.   )
  246.   typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER="(${(j:|:)anchor_files})"
  247.   # If set to "first" ("last"), remove everything before the first (last) subdirectory that contains
  248.   # files matching $POWERLEVEL9K_SHORTEN_FOLDER_MARKER. For example, when the current directory is
  249.   # /foo/bar/git_repo/nested_git_repo/baz, prompt will display git_repo/nested_git_repo/baz (first)
  250.   # or nested_git_repo/baz (last). This assumes that git_repo and nested_git_repo contain markers
  251.   # and other directories don't.
  252.   #
  253.   # Optionally, "first" and "last" can be followed by ":<offset>" where <offset> is an integer.
  254.   # This moves the truncation point to the right (positive offset) or to the left (negative offset)
  255.   # relative to the marker. Plain "first" and "last" are equivalent to "first:0" and "last:0"
  256.   # respectively.
  257.   typeset -g POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=false
  258.   # Don't shorten this many last directory segments. They are anchors.
  259.   typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
  260.   # Shorten directory if it's longer than this even if there is space for it. The value can
  261.   # be either absolute (e.g., '80') or a percentage of terminal width (e.g, '50%'). If empty,
  262.   # directory will be shortened only when prompt doesn't fit or when other parameters demand it
  263.   # (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below).
  264.   # If set to `0`, directory will always be shortened to its minimum length.
  265.   typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80
  266.   # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this
  267.   # many columns for typing commands.
  268.   typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40
  269.   # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least
  270.   # COLUMNS * POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT * 0.01 columns for typing commands.
  271.   typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT=50
  272.   # If set to true, embed a hyperlink into the directory. Useful for quickly
  273.   # opening a directory in the file manager simply by clicking the link.
  274.   # Can also be handy when the directory is shortened, as it allows you to see
  275.   # the full directory that was used in previous commands.
  276.   typeset -g POWERLEVEL9K_DIR_HYPERLINK=false
  277.  
  278.   # Enable special styling for non-writable and non-existent directories. See POWERLEVEL9K_LOCK_ICON
  279.   # and POWERLEVEL9K_DIR_CLASSES below.
  280.   typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=v3
  281.  
  282.   # The default icon shown next to non-writable and non-existent directories when
  283.   # POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3.
  284.   # typeset -g POWERLEVEL9K_LOCK_ICON='⭐'
  285.  
  286.   # POWERLEVEL9K_DIR_CLASSES allows you to specify custom icons and colors for different
  287.   # directories. It must be an array with 3 * N elements. Each triplet consists of:
  288.   #
  289.   #   1. A pattern against which the current directory ($PWD) is matched. Matching is done with
  290.   #      extended_glob option enabled.
  291.   #   2. Directory class for the purpose of styling.
  292.   #   3. An empty string.
  293.   #
  294.   # Triplets are tried in order. The first triplet whose pattern matches $PWD wins.
  295.   #
  296.   # If POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3, non-writable and non-existent directories
  297.   # acquire class suffix _NOT_WRITABLE and NON_EXISTENT respectively.
  298.   #
  299.   # For example, given these settings:
  300.   #
  301.   #   typeset -g POWERLEVEL9K_DIR_CLASSES=(
  302.   #     '~/work(|/*)'  WORK     ''
  303.   #     '~(|/*)'       HOME     ''
  304.   #     '*'            DEFAULT  '')
  305.   #
  306.   # Whenever the current directory is ~/work or a subdirectory of ~/work, it gets styled with one
  307.   # of the following classes depending on its writability and existence: WORK, WORK_NOT_WRITABLE or
  308.   # WORK_NON_EXISTENT.
  309.   #
  310.   # Simply assigning classes to directories doesn't have any visible effects. It merely gives you an
  311.   # option to define custom colors and icons for different directory classes.
  312.   #
  313.   #   # Styling for WORK.
  314.   #   typeset -g POWERLEVEL9K_DIR_WORK_VISUAL_IDENTIFIER_EXPANSION='⭐'
  315.   #   typeset -g POWERLEVEL9K_DIR_WORK_BACKGROUND=4
  316.   #   typeset -g POWERLEVEL9K_DIR_WORK_FOREGROUND=254
  317.   #   typeset -g POWERLEVEL9K_DIR_WORK_SHORTENED_FOREGROUND=250
  318.   #   typeset -g POWERLEVEL9K_DIR_WORK_ANCHOR_FOREGROUND=255
  319.   #
  320.   #   # Styling for WORK_NOT_WRITABLE.
  321.   #   typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  322.   #   typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_BACKGROUND=4
  323.   #   typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND=254
  324.   #   typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_SHORTENED_FOREGROUND=250
  325.   #   typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_ANCHOR_FOREGROUND=255
  326.   #
  327.   #   # Styling for WORK_NON_EXISTENT.
  328.   #   typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_VISUAL_IDENTIFIER_EXPANSION='⭐'
  329.   #   typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_BACKGROUND=4
  330.   #   typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_FOREGROUND=254
  331.   #   typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_SHORTENED_FOREGROUND=250
  332.   #   typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_ANCHOR_FOREGROUND=255
  333.   #
  334.   # If a styling parameter isn't explicitly defined for some class, it falls back to the classless
  335.   # parameter. For example, if POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND is not set, it falls
  336.   # back to POWERLEVEL9K_DIR_FOREGROUND.
  337.   #
  338.   # typeset -g POWERLEVEL9K_DIR_CLASSES=()
  339.  
  340.   # Custom prefix.
  341.   # typeset -g POWERLEVEL9K_DIR_PREFIX='in '
  342.  
  343.   #####################################[ vcs: git status ]######################################
  344.   # Version control system colors.
  345.   typeset -g POWERLEVEL9K_VCS_CLEAN_BACKGROUND=2
  346.   typeset -g POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=3
  347.   typeset -g POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND=2
  348.   typeset -g POWERLEVEL9K_VCS_CONFLICTED_BACKGROUND=3
  349.   typeset -g POWERLEVEL9K_VCS_LOADING_BACKGROUND=8
  350.  
  351.   # Branch icon. Set this parameter to '\uF126 ' for the popular Powerline branch icon.
  352.   typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\uF126 '
  353.  
  354.   # Untracked files icon. It's really a question mark, your font isn't broken.
  355.   # Change the value of this parameter to show a different icon.
  356.   typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON='?'
  357.  
  358.   # Formatter for Git status.
  359.   #
  360.   # Example output: master ⇣42⇡42 *42 merge ~42 +42 !42 ?42.
  361.   #
  362.   # You can edit the function to customize how Git status looks.
  363.   #
  364.   # VCS_STATUS_* parameters are set by gitstatus plugin. See reference:
  365.   # https://github.com/romkatv/gitstatus/blob/master/gitstatus.plugin.zsh.
  366.   function my_git_formatter() {
  367.     emulate -L zsh
  368.  
  369.     if [[ -n $P9K_CONTENT ]]; then
  370.       # If P9K_CONTENT is not empty, use it. It's either "loading" or from vcs_info (not from
  371.       # gitstatus plugin). VCS_STATUS_* parameters are not available in this case.
  372.       typeset -g my_git_format=$P9K_CONTENT
  373.       return
  374.     fi
  375.  
  376.     # Styling for different parts of Git status.
  377.     local       meta='%7F' # white foreground
  378.     local      clean='%0F' # black foreground
  379.     local   modified='%0F' # black foreground
  380.     local  untracked='%0F' # black foreground
  381.     local conflicted='%1F' # red foreground
  382.  
  383.     local res
  384.  
  385.     if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then
  386.       local branch=${(V)VCS_STATUS_LOCAL_BRANCH}
  387.       # If local branch name is at most 32 characters long, show it in full.
  388.       # Otherwise show the first 12 … the last 12.
  389.       # Tip: To always show local branch name in full without truncation, delete the next line.
  390.       (( $#branch > 32 )) && branch[13,-13]="…"  # <-- this line
  391.       res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\%/%%}"
  392.     fi
  393.  
  394.     if [[ -n $VCS_STATUS_TAG
  395.           # Show tag only if not on a branch.
  396.           # Tip: To always show tag, delete the next line.
  397.           && -z $VCS_STATUS_LOCAL_BRANCH  # <-- this line
  398.         ]]; then
  399.       local tag=${(V)VCS_STATUS_TAG}
  400.       # If tag name is at most 32 characters long, show it in full.
  401.       # Otherwise show the first 12 … the last 12.
  402.       # Tip: To always show tag name in full without truncation, delete the next line.
  403.       (( $#tag > 32 )) && tag[13,-13]="…"  # <-- this line
  404.       res+="${meta}#${clean}${tag//\%/%%}"
  405.     fi
  406.  
  407.     # Display the current Git commit if there is no branch and no tag.
  408.     # Tip: To always display the current Git commit, delete the next line.
  409.     [[ -z $VCS_STATUS_LOCAL_BRANCH && -z $VCS_STATUS_TAG ]] &&  # <-- this line
  410.       res+="${meta}@${clean}${VCS_STATUS_COMMIT[1,8]}"
  411.  
  412.     # Show tracking branch name if it differs from local branch.
  413.     if [[ -n ${VCS_STATUS_REMOTE_BRANCH:#$VCS_STATUS_LOCAL_BRANCH} ]]; then
  414.       res+="${meta}:${clean}${(V)VCS_STATUS_REMOTE_BRANCH//\%/%%}"
  415.     fi
  416.  
  417.     # ⇣42 if behind the remote.
  418.     (( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}${VCS_STATUS_COMMITS_BEHIND}"
  419.     # ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42.
  420.     (( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" "
  421.     (( VCS_STATUS_COMMITS_AHEAD  )) && res+="${clean}${VCS_STATUS_COMMITS_AHEAD}"
  422.     # ⇠42 if behind the push remote.
  423.     (( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}${VCS_STATUS_PUSH_COMMITS_BEHIND}"
  424.     (( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" "
  425.     # ⇢42 if ahead of the push remote; no leading space if also behind: ⇠42⇢42.
  426.     (( VCS_STATUS_PUSH_COMMITS_AHEAD  )) && res+="${clean}${VCS_STATUS_PUSH_COMMITS_AHEAD}"
  427.     # *42 if have stashes.
  428.     (( VCS_STATUS_STASHES        )) && res+=" ${clean}*${VCS_STATUS_STASHES}"
  429.     # 'merge' if the repo is in an unusual state.
  430.     [[ -n $VCS_STATUS_ACTION     ]] && res+=" ${conflicted}${VCS_STATUS_ACTION}"
  431.     # ~42 if have merge conflicts.
  432.     (( VCS_STATUS_NUM_CONFLICTED )) && res+=" ${conflicted}~${VCS_STATUS_NUM_CONFLICTED}"
  433.     # +42 if have staged changes.
  434.     (( VCS_STATUS_NUM_STAGED     )) && res+=" ${modified}+${VCS_STATUS_NUM_STAGED}"
  435.     # !42 if have unstaged changes.
  436.     (( VCS_STATUS_NUM_UNSTAGED   )) && res+=" ${modified}!${VCS_STATUS_NUM_UNSTAGED}"
  437.     # ?42 if have untracked files. It's really a question mark, your font isn't broken.
  438.     # See POWERLEVEL9K_VCS_UNTRACKED_ICON above if you want to use a different icon.
  439.     # Remove the next line if you don't want to see untracked files at all.
  440.     (( VCS_STATUS_NUM_UNTRACKED  )) && res+=" ${untracked}${(g::)POWERLEVEL9K_VCS_UNTRACKED_ICON}${VCS_STATUS_NUM_UNTRACKED}"
  441.     # "─" if the number of unstaged files is unknown. This can happen due to
  442.     # POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY (see below) being set to a non-negative number lower
  443.     # than the number of files in the Git index, or due to bash.showDirtyState being set to false
  444.     # in the repository config. The number of staged and untracked files may also be unknown
  445.     # in this case.
  446.     (( VCS_STATUS_HAS_UNSTAGED == -1 )) && res+=" ${modified}─"
  447.  
  448.     typeset -g my_git_format=$res
  449.   }
  450.   functions -M my_git_formatter 2>/dev/null
  451.  
  452.   # Don't count the number of unstaged, untracked and conflicted files in Git repositories with
  453.   # more than this many files in the index. Negative value means infinity.
  454.   #
  455.   # If you are working in Git repositories with tens of millions of files and seeing performance
  456.   # sagging, try setting POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY to a number lower than the output
  457.   # of `git ls-files | wc -l`. Alternatively, add `bash.showDirtyState = false` to the repository's
  458.   # config: `git config bash.showDirtyState false`.
  459.   typeset -g POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY=-1
  460.  
  461.   # Don't show Git status in prompt for repositories whose workdir matches this pattern.
  462.   # For example, if set to '~', the Git repository at $HOME/.git will be ignored.
  463.   # Multiple patterns can be combined with '|': '~(|/foo)|/bar/baz/*'.
  464.   typeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~'
  465.  
  466.   # Disable the default Git status formatting.
  467.   typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true
  468.   # Install our own Git status formatter.
  469.   typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${$((my_git_formatter()))+${my_git_format}}'
  470.   # Enable counters for staged, unstaged, etc.
  471.   typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED,CONFLICTED,COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=-1
  472.  
  473.   # Custom icon.
  474.   # typeset -g POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_EXPANSION='⭐'
  475.   # Custom prefix.
  476.   # typeset -g POWERLEVEL9K_VCS_PREFIX='on '
  477.  
  478.   # Show status of repositories of these types. You can add svn and/or hg if you are
  479.   # using them. If you do, your prompt may become slow even when your current directory
  480.   # isn't in an svn or hg reposotiry.
  481.   typeset -g POWERLEVEL9K_VCS_BACKENDS=(git)
  482.  
  483.   ##########################[ status: exit code of the last command ]###########################
  484.   # Enable OK_PIPE, ERROR_PIPE and ERROR_SIGNAL status states to allow us to enable, disable and
  485.   # style them independently from the regular OK and ERROR state.
  486.   typeset -g POWERLEVEL9K_STATUS_EXTENDED_STATES=true
  487.  
  488.   # Status on success. No content, just an icon. No need to show it if prompt_char is enabled as
  489.   # it will signify success by turning green.
  490.   typeset -g POWERLEVEL9K_STATUS_OK=true
  491.   typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔'
  492.   typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=2
  493.   typeset -g POWERLEVEL9K_STATUS_OK_BACKGROUND=0
  494.  
  495.   # Status when some part of a pipe command fails but the overall exit status is zero. It may look
  496.   # like this: 1|0.
  497.   typeset -g POWERLEVEL9K_STATUS_OK_PIPE=true
  498.   typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔'
  499.   typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=2
  500.   typeset -g POWERLEVEL9K_STATUS_OK_PIPE_BACKGROUND=0
  501.  
  502.   # Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as
  503.   # it will signify error by turning red.
  504.   typeset -g POWERLEVEL9K_STATUS_ERROR=true
  505.   typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘'
  506.   typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=3
  507.   typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=1
  508.  
  509.   # Status when the last command was terminated by a signal.
  510.   typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true
  511.   # Use terse signal names: "INT" instead of "SIGINT(2)".
  512.   typeset -g POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false
  513.   typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION='✘'
  514.   typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=3
  515.   typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=1
  516.  
  517.   # Status when some part of a pipe command fails and the overall exit status is also non-zero.
  518.   # It may look like this: 1|0.
  519.   typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE=true
  520.   typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='✘'
  521.   typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=3
  522.   typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_BACKGROUND=1
  523.  
  524.   ###################[ command_execution_time: duration of the last command ]###################
  525.   # Execution time color.
  526.   typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=0
  527.   typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=3
  528.   # Show duration of the last command if takes at least this many seconds.
  529.   typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3
  530.   # Show this many fractional digits. Zero means round to seconds.
  531.   typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0
  532.   # Duration format: 1d 2h 3m 4s.
  533.   typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s'
  534.   # Custom icon.
  535.   # typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐'
  536.   # Custom prefix.
  537.   # typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='took '
  538.  
  539.   #######################[ background_jobs: presence of background jobs ]#######################
  540.   # Background jobs color.
  541.   typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=6
  542.   typeset -g POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND=0
  543.   # Don't show the number of background jobs.
  544.   typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false
  545.   # Custom icon.
  546.   # typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⭐'
  547.  
  548.   #######################[ direnv: direnv status (https://direnv.net/) ]########################
  549.   # Direnv color.
  550.   typeset -g POWERLEVEL9K_DIRENV_FOREGROUND=3
  551.   typeset -g POWERLEVEL9K_DIRENV_BACKGROUND=0
  552.   # Custom icon.
  553.   # typeset -g POWERLEVEL9K_DIRENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  554.  
  555.   ###############[ asdf: asdf version manager (https://github.com/asdf-vm/asdf) ]###############
  556.   # Default asdf color. Only used to display tools for which there is no color override (see below).
  557.   # Tip:  Override these parameters for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_FOREGROUND and
  558.   # POWERLEVEL9K_ASDF_${TOOL}_BACKGROUND.
  559.   typeset -g POWERLEVEL9K_ASDF_FOREGROUND=0
  560.   typeset -g POWERLEVEL9K_ASDF_BACKGROUND=7
  561.  
  562.   # There are four parameters that can be used to hide asdf tools. Each parameter describes
  563.   # conditions under which a tool gets hidden. Parameters can hide tools but not unhide them. If at
  564.   # least one parameter decides to hide a tool, that tool gets hidden. If no parameter decides to
  565.   # hide a tool, it gets shown.
  566.   #
  567.   # Special note on the difference between POWERLEVEL9K_ASDF_SOURCES and
  568.   # POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW. Consider the effect of the following commands:
  569.   #
  570.   #   asdf local  python 3.8.1
  571.   #   asdf global python 3.8.1
  572.   #
  573.   # After running both commands the current python version is 3.8.1 and its source is "local" as
  574.   # it takes precedence over "global". If POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW is set to false,
  575.   # it'll hide python version in this case because 3.8.1 is the same as the global version.
  576.   # POWERLEVEL9K_ASDF_SOURCES will hide python version only if the value of this parameter doesn't
  577.   # contain "local".
  578.  
  579.   # Hide tool versions that don't come from one of these sources.
  580.   #
  581.   # Available sources:
  582.   #
  583.   # - shell   `asdf current` says "set by ASDF_${TOOL}_VERSION environment variable"
  584.   # - local   `asdf current` says "set by /some/not/home/directory/file"
  585.   # - global  `asdf current` says "set by /home/username/file"
  586.   #
  587.   # Note: If this parameter is set to (shell local global), it won't hide tools.
  588.   # Tip:  Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SOURCES.
  589.   typeset -g POWERLEVEL9K_ASDF_SOURCES=(shell local global)
  590.  
  591.   # If set to false, hide tool versions that are the same as global.
  592.   #
  593.   # Note: The name of this parameter doesn't reflect its meaning at all.
  594.   # Note: If this parameter is set to true, it won't hide tools.
  595.   # Tip:  Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_PROMPT_ALWAYS_SHOW.
  596.   typeset -g POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW=false
  597.  
  598.   # If set to false, hide tool versions that are equal to "system".
  599.   #
  600.   # Note: If this parameter is set to true, it won't hide tools.
  601.   # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_SYSTEM.
  602.   typeset -g POWERLEVEL9K_ASDF_SHOW_SYSTEM=true
  603.  
  604.   # If set to non-empty value, hide tools unless there is a file matching the specified file pattern
  605.   # in the current directory, or its parent directory, or its grandparent directory, and so on.
  606.   #
  607.   # Note: If this parameter is set to empty value, it won't hide tools.
  608.   # Note: SHOW_ON_UPGLOB isn't specific to asdf. It works with all prompt segments.
  609.   # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_ON_UPGLOB.
  610.   #
  611.   # Example: Hide nodejs version when there is no package.json and no *.js files in the current
  612.   # directory, in `..`, in `../..` and so on.
  613.   #
  614.   #   typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.js|package.json'
  615.   typeset -g POWERLEVEL9K_ASDF_SHOW_ON_UPGLOB=
  616.  
  617.   # Ruby version from asdf.
  618.   typeset -g POWERLEVEL9K_ASDF_RUBY_FOREGROUND=0
  619.   typeset -g POWERLEVEL9K_ASDF_RUBY_BACKGROUND=1
  620.   # typeset -g POWERLEVEL9K_ASDF_RUBY_VISUAL_IDENTIFIER_EXPANSION='⭐'
  621.   # typeset -g POWERLEVEL9K_ASDF_RUBY_SHOW_ON_UPGLOB='*.foo|*.bar'
  622.  
  623.   # Python version from asdf.
  624.   typeset -g POWERLEVEL9K_ASDF_PYTHON_FOREGROUND=0
  625.   typeset -g POWERLEVEL9K_ASDF_PYTHON_BACKGROUND=4
  626.   # typeset -g POWERLEVEL9K_ASDF_PYTHON_VISUAL_IDENTIFIER_EXPANSION='⭐'
  627.   # typeset -g POWERLEVEL9K_ASDF_PYTHON_SHOW_ON_UPGLOB='*.foo|*.bar'
  628.  
  629.   # Go version from asdf.
  630.   typeset -g POWERLEVEL9K_ASDF_GOLANG_FOREGROUND=0
  631.   typeset -g POWERLEVEL9K_ASDF_GOLANG_BACKGROUND=4
  632.   # typeset -g POWERLEVEL9K_ASDF_GOLANG_VISUAL_IDENTIFIER_EXPANSION='⭐'
  633.   # typeset -g POWERLEVEL9K_ASDF_GOLANG_SHOW_ON_UPGLOB='*.foo|*.bar'
  634.  
  635.   # Node.js version from asdf.
  636.   typeset -g POWERLEVEL9K_ASDF_NODEJS_FOREGROUND=0
  637.   typeset -g POWERLEVEL9K_ASDF_NODEJS_BACKGROUND=2
  638.   # typeset -g POWERLEVEL9K_ASDF_NODEJS_VISUAL_IDENTIFIER_EXPANSION='⭐'
  639.   # typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.foo|*.bar'
  640.  
  641.   # Rust version from asdf.
  642.   typeset -g POWERLEVEL9K_ASDF_RUST_FOREGROUND=0
  643.   typeset -g POWERLEVEL9K_ASDF_RUST_BACKGROUND=208
  644.   # typeset -g POWERLEVEL9K_ASDF_RUST_VISUAL_IDENTIFIER_EXPANSION='⭐'
  645.   # typeset -g POWERLEVEL9K_ASDF_RUST_SHOW_ON_UPGLOB='*.foo|*.bar'
  646.  
  647.   # .NET Core version from asdf.
  648.   typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_FOREGROUND=0
  649.   typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_BACKGROUND=5
  650.   # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  651.   # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_SHOW_ON_UPGLOB='*.foo|*.bar'
  652.  
  653.   # Flutter version from asdf.
  654.   typeset -g POWERLEVEL9K_ASDF_FLUTTER_FOREGROUND=0
  655.   typeset -g POWERLEVEL9K_ASDF_FLUTTER_BACKGROUND=4
  656.   # typeset -g POWERLEVEL9K_ASDF_FLUTTER_VISUAL_IDENTIFIER_EXPANSION='⭐'
  657.   # typeset -g POWERLEVEL9K_ASDF_FLUTTER_SHOW_ON_UPGLOB='*.foo|*.bar'
  658.  
  659.   # Lua version from asdf.
  660.   typeset -g POWERLEVEL9K_ASDF_LUA_FOREGROUND=0
  661.   typeset -g POWERLEVEL9K_ASDF_LUA_BACKGROUND=4
  662.   # typeset -g POWERLEVEL9K_ASDF_LUA_VISUAL_IDENTIFIER_EXPANSION='⭐'
  663.   # typeset -g POWERLEVEL9K_ASDF_LUA_SHOW_ON_UPGLOB='*.foo|*.bar'
  664.  
  665.   # Java version from asdf.
  666.   typeset -g POWERLEVEL9K_ASDF_JAVA_FOREGROUND=1
  667.   typeset -g POWERLEVEL9K_ASDF_JAVA_BACKGROUND=7
  668.   # typeset -g POWERLEVEL9K_ASDF_JAVA_VISUAL_IDENTIFIER_EXPANSION='⭐'
  669.   # typeset -g POWERLEVEL9K_ASDF_JAVA_SHOW_ON_UPGLOB='*.foo|*.bar'
  670.  
  671.   # Perl version from asdf.
  672.   typeset -g POWERLEVEL9K_ASDF_PERL_FOREGROUND=0
  673.   typeset -g POWERLEVEL9K_ASDF_PERL_BACKGROUND=4
  674.   # typeset -g POWERLEVEL9K_ASDF_PERL_VISUAL_IDENTIFIER_EXPANSION='⭐'
  675.   # typeset -g POWERLEVEL9K_ASDF_PERL_SHOW_ON_UPGLOB='*.foo|*.bar'
  676.  
  677.   # Erlang version from asdf.
  678.   typeset -g POWERLEVEL9K_ASDF_ERLANG_FOREGROUND=0
  679.   typeset -g POWERLEVEL9K_ASDF_ERLANG_BACKGROUND=1
  680.   # typeset -g POWERLEVEL9K_ASDF_ERLANG_VISUAL_IDENTIFIER_EXPANSION='⭐'
  681.   # typeset -g POWERLEVEL9K_ASDF_ERLANG_SHOW_ON_UPGLOB='*.foo|*.bar'
  682.  
  683.   # Elixir version from asdf.
  684.   typeset -g POWERLEVEL9K_ASDF_ELIXIR_FOREGROUND=0
  685.   typeset -g POWERLEVEL9K_ASDF_ELIXIR_BACKGROUND=5
  686.   # typeset -g POWERLEVEL9K_ASDF_ELIXIR_VISUAL_IDENTIFIER_EXPANSION='⭐'
  687.   # typeset -g POWERLEVEL9K_ASDF_ELIXIR_SHOW_ON_UPGLOB='*.foo|*.bar'
  688.  
  689.   # Postgres version from asdf.
  690.   typeset -g POWERLEVEL9K_ASDF_POSTGRES_FOREGROUND=0
  691.   typeset -g POWERLEVEL9K_ASDF_POSTGRES_BACKGROUND=6
  692.   # typeset -g POWERLEVEL9K_ASDF_POSTGRES_VISUAL_IDENTIFIER_EXPANSION='⭐'
  693.   # typeset -g POWERLEVEL9K_ASDF_POSTGRES_SHOW_ON_UPGLOB='*.foo|*.bar'
  694.  
  695.   # PHP version from asdf.
  696.   typeset -g POWERLEVEL9K_ASDF_PHP_FOREGROUND=0
  697.   typeset -g POWERLEVEL9K_ASDF_PHP_BACKGROUND=5
  698.   # typeset -g POWERLEVEL9K_ASDF_PHP_VISUAL_IDENTIFIER_EXPANSION='⭐'
  699.   # typeset -g POWERLEVEL9K_ASDF_PHP_SHOW_ON_UPGLOB='*.foo|*.bar'
  700.  
  701.   # Haskell version from asdf.
  702.   typeset -g POWERLEVEL9K_ASDF_HASKELL_FOREGROUND=0
  703.   typeset -g POWERLEVEL9K_ASDF_HASKELL_BACKGROUND=3
  704.   # typeset -g POWERLEVEL9K_ASDF_HASKELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
  705.   # typeset -g POWERLEVEL9K_ASDF_HASKELL_SHOW_ON_UPGLOB='*.foo|*.bar'
  706.  
  707.   # Julia version from asdf.
  708.   typeset -g POWERLEVEL9K_ASDF_JULIA_FOREGROUND=0
  709.   typeset -g POWERLEVEL9K_ASDF_JULIA_BACKGROUND=2
  710.   # typeset -g POWERLEVEL9K_ASDF_JULIA_VISUAL_IDENTIFIER_EXPANSION='⭐'
  711.   # typeset -g POWERLEVEL9K_ASDF_JULIA_SHOW_ON_UPGLOB='*.foo|*.bar'
  712.  
  713.   ##########[ nordvpn: nordvpn connection status, linux only (https://nordvpn.com/) ]###########
  714.   # NordVPN connection indicator color.
  715.   typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=7
  716.   typeset -g POWERLEVEL9K_NORDVPN_BACKGROUND=4
  717.   # Hide NordVPN connection indicator when not connected.
  718.   typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION=
  719.   typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION=
  720.   # Custom icon.
  721.   # typeset -g POWERLEVEL9K_NORDVPN_VISUAL_IDENTIFIER_EXPANSION='⭐'
  722.  
  723.   #################[ ranger: ranger shell (https://github.com/ranger/ranger) ]##################
  724.   # Ranger shell color.
  725.   typeset -g POWERLEVEL9K_RANGER_FOREGROUND=3
  726.   typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0
  727.   # Custom icon.
  728.   # typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐'
  729.  
  730.   ######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]#######################
  731.   # Nnn shell color.
  732.   typeset -g POWERLEVEL9K_NNN_FOREGROUND=0
  733.   typeset -g POWERLEVEL9K_NNN_BACKGROUND=6
  734.   # Custom icon.
  735.   # typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐'
  736.  
  737.   ###########################[ vim_shell: vim shell indicator (:sh) ]###########################
  738.   # Vim shell indicator color.
  739.   typeset -g POWERLEVEL9K_VIM_SHELL_FOREGROUND=0
  740.   typeset -g POWERLEVEL9K_VIM_SHELL_BACKGROUND=2
  741.   # Custom icon.
  742.   # typeset -g POWERLEVEL9K_VIM_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
  743.  
  744.   ######[ midnight_commander: midnight commander shell (https://midnight-commander.org/) ]######
  745.   # Midnight Commander shell color.
  746.   typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_FOREGROUND=3
  747.   typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_BACKGROUND=0
  748.   # Custom icon.
  749.   # typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_VISUAL_IDENTIFIER_EXPANSION='⭐'
  750.  
  751.   #[ nix_shell: nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) ]##
  752.   # Nix shell color.
  753.   typeset -g POWERLEVEL9K_NIX_SHELL_FOREGROUND=0
  754.   typeset -g POWERLEVEL9K_NIX_SHELL_BACKGROUND=4
  755.  
  756.   # Tip: If you want to see just the icon without "pure" and "impure", uncomment the next line.
  757.   # typeset -g POWERLEVEL9K_NIX_SHELL_CONTENT_EXPANSION=
  758.  
  759.   # Custom icon.
  760.   # typeset -g POWERLEVEL9K_NIX_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'
  761.  
  762.   ##################################[ disk_usage: disk usage ]##################################
  763.   # Colors for different levels of disk usage.
  764.   typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_FOREGROUND=3
  765.   typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_BACKGROUND=0
  766.   typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_FOREGROUND=0
  767.   typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_BACKGROUND=3
  768.   typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_FOREGROUND=7
  769.   typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_BACKGROUND=1
  770.   # Thresholds for different levels of disk usage (percentage points).
  771.   typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=90
  772.   typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL=95
  773.   # If set to true, hide disk usage when below $POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL percent.
  774.   typeset -g POWERLEVEL9K_DISK_USAGE_ONLY_WARNING=false
  775.   # Custom icon.
  776.   # typeset -g POWERLEVEL9K_DISK_USAGE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  777.  
  778.   ###########[ vi_mode: vi mode (you don't need this if you've enabled prompt_char) ]###########
  779.   # Foreground color.
  780.   typeset -g POWERLEVEL9K_VI_MODE_FOREGROUND=0
  781.   # Text and color for normal (a.k.a. command) vi mode.
  782.   typeset -g POWERLEVEL9K_VI_COMMAND_MODE_STRING=NORMAL
  783.   typeset -g POWERLEVEL9K_VI_MODE_NORMAL_BACKGROUND=2
  784.   # Text and color for visual vi mode.
  785.   typeset -g POWERLEVEL9K_VI_VISUAL_MODE_STRING=VISUAL
  786.   typeset -g POWERLEVEL9K_VI_MODE_VISUAL_BACKGROUND=4
  787.   # Text and color for overtype (a.k.a. overwrite and replace) vi mode.
  788.   typeset -g POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=OVERTYPE
  789.   typeset -g POWERLEVEL9K_VI_MODE_OVERWRITE_BACKGROUND=3
  790.   # Text and color for insert vi mode.
  791.   typeset -g POWERLEVEL9K_VI_INSERT_MODE_STRING=
  792.   typeset -g POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND=8
  793.  
  794.   ######################################[ ram: free RAM ]#######################################
  795.   # RAM color.
  796.   typeset -g POWERLEVEL9K_RAM_FOREGROUND=0
  797.   typeset -g POWERLEVEL9K_RAM_BACKGROUND=3
  798.   # Custom icon.
  799.   # typeset -g POWERLEVEL9K_RAM_VISUAL_IDENTIFIER_EXPANSION='⭐'
  800.  
  801.   #####################################[ swap: used swap ]######################################
  802.   # Swap color.
  803.   typeset -g POWERLEVEL9K_SWAP_FOREGROUND=0
  804.   typeset -g POWERLEVEL9K_SWAP_BACKGROUND=3
  805.   # Custom icon.
  806.   # typeset -g POWERLEVEL9K_SWAP_VISUAL_IDENTIFIER_EXPANSION='⭐'
  807.  
  808.   ######################################[ load: CPU load ]######################################
  809.   # Show average CPU load over this many last minutes. Valid values are 1, 5 and 15.
  810.   typeset -g POWERLEVEL9K_LOAD_WHICH=5
  811.   # Load color when load is under 50%.
  812.   typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=0
  813.   typeset -g POWERLEVEL9K_LOAD_NORMAL_BACKGROUND=2
  814.   # Load color when load is between 50% and 70%.
  815.   typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=0
  816.   typeset -g POWERLEVEL9K_LOAD_WARNING_BACKGROUND=3
  817.   # Load color when load is over 70%.
  818.   typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=0
  819.   typeset -g POWERLEVEL9K_LOAD_CRITICAL_BACKGROUND=1
  820.   # Custom icon.
  821.   # typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐'
  822.  
  823.   ################[ todo: todo items (https://github.com/todotxt/todo.txt-cli) ]################
  824.   # Todo color.
  825.   typeset -g POWERLEVEL9K_TODO_FOREGROUND=0
  826.   typeset -g POWERLEVEL9K_TODO_BACKGROUND=8
  827.   # Hide todo when the total number of tasks is zero.
  828.   typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_TOTAL=true
  829.   # Hide todo when the number of tasks after filtering is zero.
  830.   typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_FILTERED=false
  831.  
  832.   # Todo format. The following parameters are available within the expansion.
  833.   #
  834.   # - P9K_TODO_TOTAL_TASK_COUNT     The total number of tasks.
  835.   # - P9K_TODO_FILTERED_TASK_COUNT  The number of tasks after filtering.
  836.   #
  837.   # These variables correspond to the last line of the output of `todo.sh -p ls`:
  838.   #
  839.   #   TODO: 24 of 42 tasks shown
  840.   #
  841.   # Here 24 is P9K_TODO_FILTERED_TASK_COUNT and 42 is P9K_TODO_TOTAL_TASK_COUNT.
  842.   #
  843.   # typeset -g POWERLEVEL9K_TODO_CONTENT_EXPANSION='$P9K_TODO_FILTERED_TASK_COUNT'
  844.  
  845.   # Custom icon.
  846.   # typeset -g POWERLEVEL9K_TODO_VISUAL_IDENTIFIER_EXPANSION='⭐'
  847.  
  848.   ###########[ timewarrior: timewarrior tracking status (https://timewarrior.net/) ]############
  849.   # Timewarrior color.
  850.   typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=255
  851.   typeset -g POWERLEVEL9K_TIMEWARRIOR_BACKGROUND=8
  852.  
  853.   # If the tracked task is longer than 24 characters, truncate and append "…".
  854.   # Tip: To always display tasks without truncation, delete the following parameter.
  855.   # Tip: To hide task names and display just the icon when time tracking is enabled, set the
  856.   # value of the following parameter to "".
  857.   typeset -g POWERLEVEL9K_TIMEWARRIOR_CONTENT_EXPANSION='${P9K_CONTENT:0:24}${${P9K_CONTENT:24}:+…}'
  858.  
  859.   # Custom icon.
  860.   # typeset -g POWERLEVEL9K_TIMEWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
  861.  
  862.   ##############[ taskwarrior: taskwarrior task count (https://taskwarrior.org/) ]##############
  863.   # Taskwarrior color.
  864.   typeset -g POWERLEVEL9K_TASKWARRIOR_FOREGROUND=0
  865.   typeset -g POWERLEVEL9K_TASKWARRIOR_BACKGROUND=6
  866.  
  867.   # Taskwarrior segment format. The following parameters are available within the expansion.
  868.   #
  869.   # - P9K_TASKWARRIOR_PENDING_COUNT   The number of pending tasks: `task +PENDING count`.
  870.   # - P9K_TASKWARRIOR_OVERDUE_COUNT   The number of overdue tasks: `task +OVERDUE count`.
  871.   #
  872.   # Zero values are represented as empty parameters.
  873.   #
  874.   # The default format:
  875.   #
  876.   #   '${P9K_TASKWARRIOR_OVERDUE_COUNT:+"!$P9K_TASKWARRIOR_OVERDUE_COUNT/"}$P9K_TASKWARRIOR_PENDING_COUNT'
  877.   #
  878.   # typeset -g POWERLEVEL9K_TASKWARRIOR_CONTENT_EXPANSION='$P9K_TASKWARRIOR_PENDING_COUNT'
  879.  
  880.   # Custom icon.
  881.   # typeset -g POWERLEVEL9K_TASKWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
  882.  
  883.   ##################################[ context: user@hostname ]##################################
  884.   # Context color when running with privileges.
  885.   typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=1
  886.   typeset -g POWERLEVEL9K_CONTEXT_ROOT_BACKGROUND=0
  887.   # Context color in SSH without privileges.
  888.   typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_FOREGROUND=3
  889.   typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_BACKGROUND=0
  890.   # Default context color (no privileges, no SSH).
  891.   typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=3
  892.   typeset -g POWERLEVEL9K_CONTEXT_BACKGROUND=0
  893.  
  894.   # Context format when running with privileges: user@hostname.
  895.   typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%n@%m'
  896.   # Context format when in SSH without privileges: user@hostname.
  897.   typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_TEMPLATE='%n@%m'
  898.   # Default context format (no privileges, no SSH): user@hostname.
  899.   typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m'
  900.  
  901.   # Don't show context unless running with privileges or in SSH.
  902.   # Tip: Remove the next line to always show context.
  903.   typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
  904.  
  905.   # Custom icon.
  906.   # typeset -g POWERLEVEL9K_CONTEXT_VISUAL_IDENTIFIER_EXPANSION='⭐'
  907.   # Custom prefix.
  908.   # typeset -g POWERLEVEL9K_CONTEXT_PREFIX='with '
  909.  
  910.   ###[ virtualenv: python virtual environment (https://docs.python.org/3/library/venv.html) ]###
  911.   # Python virtual environment color.
  912.   typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=0
  913.   typeset -g POWERLEVEL9K_VIRTUALENV_BACKGROUND=4
  914.   # Don't show Python version next to the virtual environment name.
  915.   typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false
  916.   # If set to "false", won't show virtualenv if pyenv is already shown.
  917.   # If set to "if-different", won't show virtualenv if it's the same as pyenv.
  918.   typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=false
  919.   # Separate environment name from Python version only with a space.
  920.   typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER=
  921.   # Custom icon.
  922.   # typeset -g POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  923.  
  924.   #####################[ anaconda: conda environment (https://conda.io/) ]######################
  925.   # Anaconda environment color.
  926.   typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=0
  927.   typeset -g POWERLEVEL9K_ANACONDA_BACKGROUND=4
  928.  
  929.   # Anaconda segment format. The following parameters are available within the expansion.
  930.   #
  931.   # - CONDA_PREFIX                 Absolute path to the active Anaconda/Miniconda environment.
  932.   # - CONDA_DEFAULT_ENV            Name of the active Anaconda/Miniconda environment.
  933.   # - CONDA_PROMPT_MODIFIER        Configurable prompt modifier (see below).
  934.   # - P9K_ANACONDA_PYTHON_VERSION  Current python version (python --version).
  935.   #
  936.   # CONDA_PROMPT_MODIFIER can be configured with the following command:
  937.   #
  938.   #   conda config --set env_prompt '({default_env}) '
  939.   #
  940.   # The last argument is a Python format string that can use the following variables:
  941.   #
  942.   # - prefix       The same as CONDA_PREFIX.
  943.   # - default_env  The same as CONDA_DEFAULT_ENV.
  944.   # - name         The last segment of CONDA_PREFIX.
  945.   # - stacked_env  Comma-separated list of names in the environment stack. The first element is
  946.   #                always the same as default_env.
  947.   #
  948.   # Note: '({default_env}) ' is the default value of env_prompt.
  949.   #
  950.   # The default value of POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION expands to $CONDA_PROMPT_MODIFIER
  951.   # without the surrounding parentheses, or to the last path component of CONDA_PREFIX if the former
  952.   # is empty.
  953.   typeset -g POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION='${${${${CONDA_PROMPT_MODIFIER#\(}% }%\)}:-${CONDA_PREFIX:t}}'
  954.  
  955.   # Custom icon.
  956.   # typeset -g POWERLEVEL9K_ANACONDA_VISUAL_IDENTIFIER_EXPANSION='⭐'
  957.  
  958.   ################[ pyenv: python environment (https://github.com/pyenv/pyenv) ]################
  959.   # Pyenv color.
  960.   typeset -g POWERLEVEL9K_PYENV_FOREGROUND=0
  961.   typeset -g POWERLEVEL9K_PYENV_BACKGROUND=4
  962.   # Hide python version if it doesn't come from one of these sources.
  963.   typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global)
  964.   # If set to false, hide python version if it's the same as global:
  965.   # $(pyenv version-name) == $(pyenv global).
  966.   typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
  967.   # If set to false, hide python version if it's equal to "system".
  968.   typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
  969.  
  970.   # Pyenv segment format. The following parameters are available within the expansion.
  971.   #
  972.   # - P9K_CONTENT                Current pyenv environment (pyenv version-name).
  973.   # - P9K_PYENV_PYTHON_VERSION   Current python version (python --version).
  974.   #
  975.   # The default format has the following logic:
  976.   #
  977.   # 1. Display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION" if $P9K_PYENV_PYTHON_VERSION is not
  978.   #   empty and unequal to $P9K_CONTENT.
  979.   # 2. Otherwise display just "$P9K_CONTENT".
  980.   typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_PYENV_PYTHON_VERSION:#$P9K_CONTENT}:+ $P9K_PYENV_PYTHON_VERSION}'
  981.  
  982.   # Custom icon.
  983.   # typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  984.  
  985.   ################[ goenv: go environment (https://github.com/syndbg/goenv) ]################
  986.   # Goenv color.
  987.   typeset -g POWERLEVEL9K_GOENV_FOREGROUND=0
  988.   typeset -g POWERLEVEL9K_GOENV_BACKGROUND=4
  989.   # Hide go version if it doesn't come from one of these sources.
  990.   typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global)
  991.   # If set to false, hide go version if it's the same as global:
  992.   # $(goenv version-name) == $(goenv global).
  993.   typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false
  994.   # If set to false, hide go version if it's equal to "system".
  995.   typeset -g POWERLEVEL9K_GOENV_SHOW_SYSTEM=true
  996.   # Custom icon.
  997.   # typeset -g POWERLEVEL9K_GOENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  998.  
  999.   ##########[ nodenv: node.js version from nodenv (https://github.com/nodenv/nodenv) ]##########
  1000.   # Nodenv color.
  1001.   typeset -g POWERLEVEL9K_NODENV_FOREGROUND=2
  1002.   typeset -g POWERLEVEL9K_NODENV_BACKGROUND=0
  1003.   # Hide node version if it doesn't come from one of these sources.
  1004.   typeset -g POWERLEVEL9K_NODENV_SOURCES=(shell local global)
  1005.   # If set to false, hide node version if it's the same as global:
  1006.   # $(nodenv version-name) == $(nodenv global).
  1007.   typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false
  1008.   # If set to false, hide node version if it's equal to "system".
  1009.   typeset -g POWERLEVEL9K_NODENV_SHOW_SYSTEM=true
  1010.   # Custom icon.
  1011.   # typeset -g POWERLEVEL9K_NODENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1012.  
  1013.   ##############[ nvm: node.js version from nvm (https://github.com/nvm-sh/nvm) ]###############
  1014.   # Nvm color.
  1015.   typeset -g POWERLEVEL9K_NVM_FOREGROUND=0
  1016.   typeset -g POWERLEVEL9K_NVM_BACKGROUND=5
  1017.   # Custom icon.
  1018.   # typeset -g POWERLEVEL9K_NVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1019.  
  1020.   ############[ nodeenv: node.js environment (https://github.com/ekalinin/nodeenv) ]############
  1021.   # Nodeenv color.
  1022.   typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=2
  1023.   typeset -g POWERLEVEL9K_NODEENV_BACKGROUND=0
  1024.   # Don't show Node version next to the environment name.
  1025.   typeset -g POWERLEVEL9K_NODEENV_SHOW_NODE_VERSION=false
  1026.   # Separate environment name from Node version only with a space.
  1027.   typeset -g POWERLEVEL9K_NODEENV_{LEFT,RIGHT}_DELIMITER=
  1028.   # Custom icon.
  1029.   # typeset -g POWERLEVEL9K_NODEENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1030.  
  1031.   ##############################[ node_version: node.js version ]###############################
  1032.   # Node version color.
  1033.   typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=7
  1034.   typeset -g POWERLEVEL9K_NODE_VERSION_BACKGROUND=2
  1035.   # Show node version only when in a directory tree containing package.json.
  1036.   typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true
  1037.   # Custom icon.
  1038.   # typeset -g POWERLEVEL9K_NODE_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1039.  
  1040.   #######################[ go_version: go version (https://golang.org) ]########################
  1041.   # Go version color.
  1042.   typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=255
  1043.   typeset -g POWERLEVEL9K_GO_VERSION_BACKGROUND=2
  1044.   # Show go version only when in a go project subdirectory.
  1045.   typeset -g POWERLEVEL9K_GO_VERSION_PROJECT_ONLY=true
  1046.   # Custom icon.
  1047.   # typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1048.  
  1049.   #################[ rust_version: rustc version (https://www.rust-lang.org) ]##################
  1050.   # Rust version color.
  1051.   typeset -g POWERLEVEL9K_RUST_VERSION_FOREGROUND=0
  1052.   typeset -g POWERLEVEL9K_RUST_VERSION_BACKGROUND=208
  1053.   # Show rust version only when in a rust project subdirectory.
  1054.   typeset -g POWERLEVEL9K_RUST_VERSION_PROJECT_ONLY=true
  1055.   # Custom icon.
  1056.   # typeset -g POWERLEVEL9K_RUST_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1057.  
  1058.   ###############[ dotnet_version: .NET version (https://dotnet.microsoft.com) ]################
  1059.   # .NET version color.
  1060.   typeset -g POWERLEVEL9K_DOTNET_VERSION_FOREGROUND=7
  1061.   typeset -g POWERLEVEL9K_DOTNET_VERSION_BACKGROUND=5
  1062.   # Show .NET version only when in a .NET project subdirectory.
  1063.   typeset -g POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY=true
  1064.   # Custom icon.
  1065.   # typeset -g POWERLEVEL9K_DOTNET_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1066.  
  1067.   #####################[ php_version: php version (https://www.php.net/) ]######################
  1068.   # PHP version color.
  1069.   typeset -g POWERLEVEL9K_PHP_VERSION_FOREGROUND=0
  1070.   typeset -g POWERLEVEL9K_PHP_VERSION_BACKGROUND=5
  1071.   # Show PHP version only when in a PHP project subdirectory.
  1072.   typeset -g POWERLEVEL9K_PHP_VERSION_PROJECT_ONLY=true
  1073.   # Custom icon.
  1074.   # typeset -g POWERLEVEL9K_PHP_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1075.  
  1076.   ##########[ laravel_version: laravel php framework version (https://laravel.com/) ]###########
  1077.   # Laravel version color.
  1078.   typeset -g POWERLEVEL9K_LARAVEL_VERSION_FOREGROUND=1
  1079.   typeset -g POWERLEVEL9K_LARAVEL_VERSION_BACKGROUND=7
  1080.   # Custom icon.
  1081.   # typeset -g POWERLEVEL9K_LARAVEL_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1082.  
  1083.   #############[ rbenv: ruby version from rbenv (https://github.com/rbenv/rbenv) ]##############
  1084.   # Rbenv color.
  1085.   typeset -g POWERLEVEL9K_RBENV_FOREGROUND=0
  1086.   typeset -g POWERLEVEL9K_RBENV_BACKGROUND=1
  1087.   # Hide ruby version if it doesn't come from one of these sources.
  1088.   typeset -g POWERLEVEL9K_RBENV_SOURCES=(shell local global)
  1089.   # If set to false, hide ruby version if it's the same as global:
  1090.   # $(rbenv version-name) == $(rbenv global).
  1091.   typeset -g POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false
  1092.   # If set to false, hide ruby version if it's equal to "system".
  1093.   typeset -g POWERLEVEL9K_RBENV_SHOW_SYSTEM=true
  1094.   # Custom icon.
  1095.   # typeset -g POWERLEVEL9K_RBENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1096.  
  1097.   ####################[ java_version: java version (https://www.java.com/) ]####################
  1098.   # Java version color.
  1099.   typeset -g POWERLEVEL9K_JAVA_VERSION_FOREGROUND=1
  1100.   typeset -g POWERLEVEL9K_JAVA_VERSION_BACKGROUND=7
  1101.   # Show java version only when in a java project subdirectory.
  1102.   typeset -g POWERLEVEL9K_JAVA_VERSION_PROJECT_ONLY=true
  1103.   # Show brief version.
  1104.   typeset -g POWERLEVEL9K_JAVA_VERSION_FULL=false
  1105.   # Custom icon.
  1106.   # typeset -g POWERLEVEL9K_JAVA_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1107.  
  1108.   ###[ package: name@version from package.json (https://docs.npmjs.com/files/package.json) ]####
  1109.   # Package color.
  1110.   typeset -g POWERLEVEL9K_PACKAGE_FOREGROUND=0
  1111.   typeset -g POWERLEVEL9K_PACKAGE_BACKGROUND=6
  1112.  
  1113.   # Package format. The following parameters are available within the expansion.
  1114.   #
  1115.   # - P9K_PACKAGE_NAME     The value of `name` field in package.json.
  1116.   # - P9K_PACKAGE_VERSION  The value of `version` field in package.json.
  1117.   #
  1118.   # typeset -g POWERLEVEL9K_PACKAGE_CONTENT_EXPANSION='${P9K_PACKAGE_NAME//\%/%%}@${P9K_PACKAGE_VERSION//\%/%%}'
  1119.  
  1120.   # Custom icon.
  1121.   # typeset -g POWERLEVEL9K_PACKAGE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1122.  
  1123.   #######################[ rvm: ruby version from rvm (https://rvm.io) ]########################
  1124.   # Rvm color.
  1125.   typeset -g POWERLEVEL9K_RVM_FOREGROUND=0
  1126.   typeset -g POWERLEVEL9K_RVM_BACKGROUND=240
  1127.   # Don't show @gemset at the end.
  1128.   typeset -g POWERLEVEL9K_RVM_SHOW_GEMSET=false
  1129.   # Don't show ruby- at the front.
  1130.   typeset -g POWERLEVEL9K_RVM_SHOW_PREFIX=false
  1131.   # Custom icon.
  1132.   # typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1133.  
  1134.   ###########[ fvm: flutter version management (https://github.com/leoafarias/fvm) ]############
  1135.   # Fvm color.
  1136.   typeset -g POWERLEVEL9K_FVM_FOREGROUND=0
  1137.   typeset -g POWERLEVEL9K_FVM_BACKGROUND=4
  1138.   # Custom icon.
  1139.   # typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1140.  
  1141.   ##########[ luaenv: lua version from luaenv (https://github.com/cehoffman/luaenv) ]###########
  1142.   # Lua color.
  1143.   typeset -g POWERLEVEL9K_LUAENV_FOREGROUND=0
  1144.   typeset -g POWERLEVEL9K_LUAENV_BACKGROUND=4
  1145.   # Hide lua version if it doesn't come from one of these sources.
  1146.   typeset -g POWERLEVEL9K_LUAENV_SOURCES=(shell local global)
  1147.   # If set to false, hide lua version if it's the same as global:
  1148.   # $(luaenv version-name) == $(luaenv global).
  1149.   typeset -g POWERLEVEL9K_LUAENV_PROMPT_ALWAYS_SHOW=false
  1150.   # If set to false, hide lua version if it's equal to "system".
  1151.   typeset -g POWERLEVEL9K_LUAENV_SHOW_SYSTEM=true
  1152.   # Custom icon.
  1153.   # typeset -g POWERLEVEL9K_LUAENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1154.  
  1155.   ###############[ jenv: java version from jenv (https://github.com/jenv/jenv) ]################
  1156.   # Java color.
  1157.   typeset -g POWERLEVEL9K_JENV_FOREGROUND=1
  1158.   typeset -g POWERLEVEL9K_JENV_BACKGROUND=7
  1159.   # Hide java version if it doesn't come from one of these sources.
  1160.   typeset -g POWERLEVEL9K_JENV_SOURCES=(shell local global)
  1161.   # If set to false, hide java version if it's the same as global:
  1162.   # $(jenv version-name) == $(jenv global).
  1163.   typeset -g POWERLEVEL9K_JENV_PROMPT_ALWAYS_SHOW=false
  1164.   # If set to false, hide java version if it's equal to "system".
  1165.   typeset -g POWERLEVEL9K_JENV_SHOW_SYSTEM=true
  1166.   # Custom icon.
  1167.   # typeset -g POWERLEVEL9K_JENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1168.  
  1169.   ###########[ plenv: perl version from plenv (https://github.com/tokuhirom/plenv) ]############
  1170.   # Perl color.
  1171.   typeset -g POWERLEVEL9K_PLENV_FOREGROUND=0
  1172.   typeset -g POWERLEVEL9K_PLENV_BACKGROUND=4
  1173.   # Hide perl version if it doesn't come from one of these sources.
  1174.   typeset -g POWERLEVEL9K_PLENV_SOURCES=(shell local global)
  1175.   # If set to false, hide perl version if it's the same as global:
  1176.   # $(plenv version-name) == $(plenv global).
  1177.   typeset -g POWERLEVEL9K_PLENV_PROMPT_ALWAYS_SHOW=false
  1178.   # If set to false, hide perl version if it's equal to "system".
  1179.   typeset -g POWERLEVEL9K_PLENV_SHOW_SYSTEM=true
  1180.   # Custom icon.
  1181.   # typeset -g POWERLEVEL9K_PLENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1182.  
  1183.   ############[ phpenv: php version from phpenv (https://github.com/phpenv/phpenv) ]############
  1184.   # PHP color.
  1185.   typeset -g POWERLEVEL9K_PHPENV_FOREGROUND=0
  1186.   typeset -g POWERLEVEL9K_PHPENV_BACKGROUND=5
  1187.   # Hide php version if it doesn't come from one of these sources.
  1188.   typeset -g POWERLEVEL9K_PHPENV_SOURCES=(shell local global)
  1189.   # If set to false, hide php version if it's the same as global:
  1190.   # $(phpenv version-name) == $(phpenv global).
  1191.   typeset -g POWERLEVEL9K_PHPENV_PROMPT_ALWAYS_SHOW=false
  1192.   # If set to false, hide PHP version if it's equal to "system".
  1193.   typeset -g POWERLEVEL9K_PHPENV_SHOW_SYSTEM=true
  1194.   # Custom icon.
  1195.   # typeset -g POWERLEVEL9K_PHPENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1196.  
  1197.   #######[ scalaenv: scala version from scalaenv (https://github.com/scalaenv/scalaenv) ]#######
  1198.   # Scala color.
  1199.   typeset -g POWERLEVEL9K_SCALAENV_FOREGROUND=0
  1200.   typeset -g POWERLEVEL9K_SCALAENV_BACKGROUND=1
  1201.   # Hide scala version if it doesn't come from one of these sources.
  1202.   typeset -g POWERLEVEL9K_SCALAENV_SOURCES=(shell local global)
  1203.   # If set to false, hide scala version if it's the same as global:
  1204.   # $(scalaenv version-name) == $(scalaenv global).
  1205.   typeset -g POWERLEVEL9K_SCALAENV_PROMPT_ALWAYS_SHOW=false
  1206.   # If set to false, hide scala version if it's equal to "system".
  1207.   typeset -g POWERLEVEL9K_SCALAENV_SHOW_SYSTEM=true
  1208.   # Custom icon.
  1209.   # typeset -g POWERLEVEL9K_SCALAENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1210.  
  1211.   ##########[ haskell_stack: haskell version from stack (https://haskellstack.org/) ]###########
  1212.   # Haskell color.
  1213.   typeset -g POWERLEVEL9K_HASKELL_STACK_FOREGROUND=0
  1214.   typeset -g POWERLEVEL9K_HASKELL_STACK_BACKGROUND=3
  1215.  
  1216.   # Hide haskell version if it doesn't come from one of these sources.
  1217.   #
  1218.   #   shell:  version is set by STACK_YAML
  1219.   #   local:  version is set by stack.yaml up the directory tree
  1220.   #   global: version is set by the implicit global project (~/.stack/global-project/stack.yaml)
  1221.   typeset -g POWERLEVEL9K_HASKELL_STACK_SOURCES=(shell local)
  1222.   # If set to false, hide haskell version if it's the same as in the implicit global project.
  1223.   typeset -g POWERLEVEL9K_HASKELL_STACK_ALWAYS_SHOW=true
  1224.   # Custom icon.
  1225.   # typeset -g POWERLEVEL9K_HASKELL_STACK_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1226.  
  1227.   ################[ terraform: terraform workspace (https://www.terraform.io) ]#################
  1228.   # Don't show terraform workspace if it's literally "default".
  1229.   typeset -g POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT=false
  1230.   # POWERLEVEL9K_TERRAFORM_CLASSES is an array with even number of elements. The first element
  1231.   # in each pair defines a pattern against which the current terraform workspace gets matched.
  1232.   # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
  1233.   # that gets matched. If you unset all POWERLEVEL9K_TERRAFORM_*CONTENT_EXPANSION parameters,
  1234.   # you'll see this value in your prompt. The second element of each pair in
  1235.   # POWERLEVEL9K_TERRAFORM_CLASSES defines the workspace class. Patterns are tried in order. The
  1236.   # first match wins.
  1237.   #
  1238.   # For example, given these settings:
  1239.   #
  1240.   #   typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=(
  1241.   #     '*prod*'  PROD
  1242.   #     '*test*'  TEST
  1243.   #     '*'       OTHER)
  1244.   #
  1245.   # If your current terraform workspace is "project_test", its class is TEST because "project_test"
  1246.   # doesn't match the pattern '*prod*' but does match '*test*'.
  1247.   #
  1248.   # You can define different colors, icons and content expansions for different classes:
  1249.   #
  1250.   #   typeset -g POWERLEVEL9K_TERRAFORM_TEST_FOREGROUND=2
  1251.   #   typeset -g POWERLEVEL9K_TERRAFORM_TEST_BACKGROUND=0
  1252.   #   typeset -g POWERLEVEL9K_TERRAFORM_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1253.   #   typeset -g POWERLEVEL9K_TERRAFORM_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
  1254.   typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=(
  1255.       # '*prod*'  PROD    # These values are examples that are unlikely
  1256.       # '*test*'  TEST    # to match your needs. Customize them as needed.
  1257.       '*'         OTHER)
  1258.   typeset -g POWERLEVEL9K_TERRAFORM_OTHER_FOREGROUND=4
  1259.   typeset -g POWERLEVEL9K_TERRAFORM_OTHER_BACKGROUND=0
  1260.   # typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1261.  
  1262.   #############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############
  1263.   # Show kubecontext only when the the command you are typing invokes one of these tools.
  1264.   # Tip: Remove the next line to always show kubecontext.
  1265.   typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|fluxctl|stern'
  1266.  
  1267.   # Kubernetes context classes for the purpose of using different colors, icons and expansions with
  1268.   # different contexts.
  1269.   #
  1270.   # POWERLEVEL9K_KUBECONTEXT_CLASSES is an array with even number of elements. The first element
  1271.   # in each pair defines a pattern against which the current kubernetes context gets matched.
  1272.   # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
  1273.   # that gets matched. If you unset all POWERLEVEL9K_KUBECONTEXT_*CONTENT_EXPANSION parameters,
  1274.   # you'll see this value in your prompt. The second element of each pair in
  1275.   # POWERLEVEL9K_KUBECONTEXT_CLASSES defines the context class. Patterns are tried in order. The
  1276.   # first match wins.
  1277.   #
  1278.   # For example, given these settings:
  1279.   #
  1280.   #   typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=(
  1281.   #     '*prod*'  PROD
  1282.   #     '*test*'  TEST
  1283.   #     '*'       DEFAULT)
  1284.   #
  1285.   # If your current kubernetes context is "deathray-testing/default", its class is TEST
  1286.   # because "deathray-testing/default" doesn't match the pattern '*prod*' but does match '*test*'.
  1287.   #
  1288.   # You can define different colors, icons and content expansions for different classes:
  1289.   #
  1290.   #   typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_FOREGROUND=0
  1291.   #   typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_BACKGROUND=2
  1292.   #   typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1293.   #   typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
  1294.   typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=(
  1295.       # '*prod*'  PROD    # These values are examples that are unlikely
  1296.       # '*test*'  TEST    # to match your needs. Customize them as needed.
  1297.       '*'       DEFAULT)
  1298.   typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=7
  1299.   typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_BACKGROUND=5
  1300.   # typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1301.  
  1302.   # Use POWERLEVEL9K_KUBECONTEXT_CONTENT_EXPANSION to specify the content displayed by kubecontext
  1303.   # segment. Parameter expansions are very flexible and fast, too. See reference:
  1304.   # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion.
  1305.   #
  1306.   # Within the expansion the following parameters are always available:
  1307.   #
  1308.   # - P9K_CONTENT                The content that would've been displayed if there was no content
  1309.   #                              expansion defined.
  1310.   # - P9K_KUBECONTEXT_NAME       The current context's name. Corresponds to column NAME in the
  1311.   #                              output of `kubectl config get-contexts`.
  1312.   # - P9K_KUBECONTEXT_CLUSTER    The current context's cluster. Corresponds to column CLUSTER in the
  1313.   #                              output of `kubectl config get-contexts`.
  1314.   # - P9K_KUBECONTEXT_NAMESPACE  The current context's namespace. Corresponds to column NAMESPACE
  1315.   #                              in the output of `kubectl config get-contexts`. If there is no
  1316.   #                              namespace, the parameter is set to "default".
  1317.   # - P9K_KUBECONTEXT_USER       The current context's user. Corresponds to column AUTHINFO in the
  1318.   #                              output of `kubectl config get-contexts`.
  1319.   #
  1320.   # If the context points to Google Kubernetes Engine (GKE) or Elastic Kubernetes Service (EKS),
  1321.   # the following extra parameters are available:
  1322.   #
  1323.   # - P9K_KUBECONTEXT_CLOUD_NAME     Either "gke" or "eks".
  1324.   # - P9K_KUBECONTEXT_CLOUD_ACCOUNT  Account/project ID.
  1325.   # - P9K_KUBECONTEXT_CLOUD_ZONE     Availability zone.
  1326.   # - P9K_KUBECONTEXT_CLOUD_CLUSTER  Cluster.
  1327.   #
  1328.   # P9K_KUBECONTEXT_CLOUD_* parameters are derived from P9K_KUBECONTEXT_CLUSTER. For example,
  1329.   # if P9K_KUBECONTEXT_CLUSTER is "gke_my-account_us-east1-a_my-cluster-01":
  1330.   #
  1331.   #   - P9K_KUBECONTEXT_CLOUD_NAME=gke
  1332.   #   - P9K_KUBECONTEXT_CLOUD_ACCOUNT=my-account
  1333.   #   - P9K_KUBECONTEXT_CLOUD_ZONE=us-east1-a
  1334.   #   - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01
  1335.   #
  1336.   # If P9K_KUBECONTEXT_CLUSTER is "arn:aws:eks:us-east-1:123456789012:cluster/my-cluster-01":
  1337.   #
  1338.   #   - P9K_KUBECONTEXT_CLOUD_NAME=eks
  1339.   #   - P9K_KUBECONTEXT_CLOUD_ACCOUNT=123456789012
  1340.   #   - P9K_KUBECONTEXT_CLOUD_ZONE=us-east-1
  1341.   #   - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01
  1342.   typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION=
  1343.   # Show P9K_KUBECONTEXT_CLOUD_CLUSTER if it's not empty and fall back to P9K_KUBECONTEXT_NAME.
  1344.   POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}'
  1345.   # Append the current context's namespace if it's not "default".
  1346.   POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${${:-/$P9K_KUBECONTEXT_NAMESPACE}:#/default}'
  1347.  
  1348.   # Custom prefix.
  1349.   # typeset -g POWERLEVEL9K_KUBECONTEXT_PREFIX='at '
  1350.  
  1351.   #[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]#
  1352.   # Show aws only when the the command you are typing invokes one of these tools.
  1353.   # Tip: Remove the next line to always show aws.
  1354.   typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|terraform|pulumi|terragrunt'
  1355.  
  1356.   # POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element
  1357.   # in each pair defines a pattern against which the current AWS profile gets matched.
  1358.   # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)
  1359.   # that gets matched. If you unset all POWERLEVEL9K_AWS_*CONTENT_EXPANSION parameters,
  1360.   # you'll see this value in your prompt. The second element of each pair in
  1361.   # POWERLEVEL9K_AWS_CLASSES defines the profile class. Patterns are tried in order. The
  1362.   # first match wins.
  1363.   #
  1364.   # For example, given these settings:
  1365.   #
  1366.   #   typeset -g POWERLEVEL9K_AWS_CLASSES=(
  1367.   #     '*prod*'  PROD
  1368.   #     '*test*'  TEST
  1369.   #     '*'       DEFAULT)
  1370.   #
  1371.   # If your current AWS profile is "company_test", its class is TEST
  1372.   # because "company_test" doesn't match the pattern '*prod*' but does match '*test*'.
  1373.   #
  1374.   # You can define different colors, icons and content expansions for different classes:
  1375.   #
  1376.   #   typeset -g POWERLEVEL9K_AWS_TEST_FOREGROUND=28
  1377.   #   typeset -g POWERLEVEL9K_AWS_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1378.   #   typeset -g POWERLEVEL9K_AWS_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'
  1379.   typeset -g POWERLEVEL9K_AWS_CLASSES=(
  1380.       # '*prod*'  PROD    # These values are examples that are unlikely
  1381.       # '*test*'  TEST    # to match your needs. Customize them as needed.
  1382.       '*'       DEFAULT)
  1383.   typeset -g POWERLEVEL9K_AWS_DEFAULT_FOREGROUND=7
  1384.   typeset -g POWERLEVEL9K_AWS_DEFAULT_BACKGROUND=1
  1385.   # typeset -g POWERLEVEL9K_AWS_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1386.  
  1387.   #[ aws_eb_env: aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) ]#
  1388.   # AWS Elastic Beanstalk environment color.
  1389.   typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=2
  1390.   typeset -g POWERLEVEL9K_AWS_EB_ENV_BACKGROUND=0
  1391.   # Custom icon.
  1392.   # typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1393.  
  1394.   ##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]##########
  1395.   # Show azure only when the the command you are typing invokes one of these tools.
  1396.   # Tip: Remove the next line to always show azure.
  1397.   typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt'
  1398.   # Azure account name color.
  1399.   typeset -g POWERLEVEL9K_AZURE_FOREGROUND=7
  1400.   typeset -g POWERLEVEL9K_AZURE_BACKGROUND=4
  1401.   # Custom icon.
  1402.   # typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1403.  
  1404.   ##########[ gcloud: google cloud account and project (https://cloud.google.com/) ]###########
  1405.   # Show gcloud only when the the command you are typing invokes one of these tools.
  1406.   # Tip: Remove the next line to always show gcloud.
  1407.   typeset -g POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs'
  1408.   # Google cloud color.
  1409.   typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=7
  1410.   typeset -g POWERLEVEL9K_GCLOUD_BACKGROUND=4
  1411.  
  1412.   # Google cloud format. Change the value of POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION and/or
  1413.   # POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION if the default is too verbose or not informative
  1414.   # enough. You can use the following parameters in the expansions. Each of them corresponds to the
  1415.   # output of `gcloud` tool.
  1416.   #
  1417.   #   Parameter                | Source
  1418.   #   -------------------------|--------------------------------------------------------------------
  1419.   #   P9K_GCLOUD_CONFIGURATION | gcloud config configurations list --format='value(name)'
  1420.   #   P9K_GCLOUD_ACCOUNT       | gcloud config get-value account
  1421.   #   P9K_GCLOUD_PROJECT_ID    | gcloud config get-value project
  1422.   #   P9K_GCLOUD_PROJECT_NAME  | gcloud projects describe $P9K_GCLOUD_PROJECT_ID --format='value(name)'
  1423.   #
  1424.   # Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurrences of '%' replaced with '%%'.
  1425.   #
  1426.   # Obtaining project name requires sending a request to Google servers. This can take a long time
  1427.   # and even fail. When project name is unknown, P9K_GCLOUD_PROJECT_NAME is not set and gcloud
  1428.   # prompt segment is in state PARTIAL. When project name gets known, P9K_GCLOUD_PROJECT_NAME gets
  1429.   # set and gcloud prompt segment transitions to state COMPLETE.
  1430.   #
  1431.   # You can customize the format, icon and colors of gcloud segment separately for states PARTIAL
  1432.   # and COMPLETE. You can also hide gcloud in state PARTIAL by setting
  1433.   # POWERLEVEL9K_GCLOUD_PARTIAL_VISUAL_IDENTIFIER_EXPANSION and
  1434.   # POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION to empty.
  1435.   typeset -g POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_ID//\%/%%}'
  1436.   typeset -g POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_NAME//\%/%%}'
  1437.  
  1438.   # Send a request to Google (by means of `gcloud projects describe ...`) to obtain project name
  1439.   # this often. Negative value disables periodic polling. In this mode project name is retrieved
  1440.   # only when the current configuration, account or project id changes.
  1441.   typeset -g POWERLEVEL9K_GCLOUD_REFRESH_PROJECT_NAME_SECONDS=60
  1442.  
  1443.   # Custom icon.
  1444.   # typeset -g POWERLEVEL9K_GCLOUD_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1445.  
  1446.   #[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]#
  1447.   # Show google_app_cred only when the the command you are typing invokes one of these tools.
  1448.   # Tip: Remove the next line to always show google_app_cred.
  1449.   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi|terragrunt'
  1450.  
  1451.   # Google application credentials classes for the purpose of using different colors, icons and
  1452.   # expansions with different credentials.
  1453.   #
  1454.   # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES is an array with even number of elements. The first
  1455.   # element in each pair defines a pattern against which the current kubernetes context gets
  1456.   # matched. More specifically, it's P9K_CONTENT prior to the application of context expansion
  1457.   # (see below) that gets matched. If you unset all POWERLEVEL9K_GOOGLE_APP_CRED_*CONTENT_EXPANSION
  1458.   # parameters, you'll see this value in your prompt. The second element of each pair in
  1459.   # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES defines the context class. Patterns are tried in order.
  1460.   # The first match wins.
  1461.   #
  1462.   # For example, given these settings:
  1463.   #
  1464.   #   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=(
  1465.   #     '*:*prod*:*'  PROD
  1466.   #     '*:*test*:*'  TEST
  1467.   #     '*'           DEFAULT)
  1468.   #
  1469.   # If your current Google application credentials is "service_account deathray-testing x@y.com",
  1470.   # its class is TEST because it doesn't match the pattern '* *prod* *' but does match '* *test* *'.
  1471.   #
  1472.   # You can define different colors, icons and content expansions for different classes:
  1473.   #
  1474.   #   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_FOREGROUND=28
  1475.   #   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1476.   #   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_CONTENT_EXPANSION='$P9K_GOOGLE_APP_CRED_PROJECT_ID'
  1477.   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=(
  1478.       # '*:*prod*:*'  PROD    # These values are examples that are unlikely
  1479.       # '*:*test*:*'  TEST    # to match your needs. Customize them as needed.
  1480.       '*'             DEFAULT)
  1481.   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_FOREGROUND=7
  1482.   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_BACKGROUND=4
  1483.   # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1484.  
  1485.   # Use POWERLEVEL9K_GOOGLE_APP_CRED_CONTENT_EXPANSION to specify the content displayed by
  1486.   # google_app_cred segment. Parameter expansions are very flexible and fast, too. See reference:
  1487.   # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion.
  1488.   #
  1489.   # You can use the following parameters in the expansion. Each of them corresponds to one of the
  1490.   # fields in the JSON file pointed to by GOOGLE_APPLICATION_CREDENTIALS.
  1491.   #
  1492.   #   Parameter                        | JSON key file field
  1493.   #   ---------------------------------+---------------
  1494.   #   P9K_GOOGLE_APP_CRED_TYPE         | type
  1495.   #   P9K_GOOGLE_APP_CRED_PROJECT_ID   | project_id
  1496.   #   P9K_GOOGLE_APP_CRED_CLIENT_EMAIL | client_email
  1497.   #
  1498.   # Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurrences of '%' replaced by '%%'.
  1499.   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_CONTENT_EXPANSION='${P9K_GOOGLE_APP_CRED_PROJECT_ID//\%/%%}'
  1500.  
  1501.   ###############################[ public_ip: public IP address ]###############################
  1502.   # Public IP color.
  1503.   typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=7
  1504.   typeset -g POWERLEVEL9K_PUBLIC_IP_BACKGROUND=0
  1505.   # Custom icon.
  1506.   # typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1507.  
  1508.   ########################[ vpn_ip: virtual private network indicator ]#########################
  1509.   # VPN IP color.
  1510.   typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=0
  1511.   typeset -g POWERLEVEL9K_VPN_IP_BACKGROUND=6
  1512.   # When on VPN, show just an icon without the IP address.
  1513.   # Tip: To display the private IP address when on VPN, remove the next line.
  1514.   typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION=
  1515.   # Regular expression for the VPN network interface. Run `ifconfig` or `ip -4 a show` while on VPN
  1516.   # to see the name of the interface.
  1517.   typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(gpd|wg|(.*tun)|tailscale)[0-9]*'
  1518.   # If set to true, show one segment per matching network interface. If set to false, show only
  1519.   # one segment corresponding to the first matching network interface.
  1520.   # Tip: If you set it to true, you'll probably want to unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION.
  1521.   typeset -g POWERLEVEL9K_VPN_IP_SHOW_ALL=false
  1522.   # Custom icon.
  1523.   # typeset -g POWERLEVEL9K_VPN_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1524.  
  1525.   ###########[ ip: ip address and bandwidth usage for a specified network interface ]###########
  1526.   # IP color.
  1527.   typeset -g POWERLEVEL9K_IP_BACKGROUND=4
  1528.   typeset -g POWERLEVEL9K_IP_FOREGROUND=0
  1529.   # The following parameters are accessible within the expansion:
  1530.   #
  1531.   #   Parameter             | Meaning
  1532.   #   ----------------------+---------------
  1533.   #   P9K_IP_IP         | IP address
  1534.   #   P9K_IP_INTERFACE  | network interface
  1535.   #   P9K_IP_RX_BYTES   | total number of bytes received
  1536.   #   P9K_IP_TX_BYTES   | total number of bytes sent
  1537.   #   P9K_IP_RX_RATE    | receive rate (since last prompt)
  1538.   #   P9K_IP_TX_RATE    | send rate (since last prompt)
  1539.   typeset -g POWERLEVEL9K_IP_CONTENT_EXPANSION='${P9K_IP_RX_RATE:+⇣$P9K_IP_RX_RATE }${P9K_IP_TX_RATE:+⇡$P9K_IP_TX_RATE }$P9K_IP_IP'
  1540.   # Show information for the first network interface whose name matches this regular expression.
  1541.   # Run `ifconfig` or `ip -4 a show` to see the names of all network interfaces.
  1542.   typeset -g POWERLEVEL9K_IP_INTERFACE='[ew].*'
  1543.   # Custom icon.
  1544.   # typeset -g POWERLEVEL9K_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1545.  
  1546.   #########################[ proxy: system-wide http/https/ftp proxy ]##########################
  1547.   # Proxy color.
  1548.   typeset -g POWERLEVEL9K_PROXY_FOREGROUND=4
  1549.   typeset -g POWERLEVEL9K_PROXY_BACKGROUND=0
  1550.   # Custom icon.
  1551.   # typeset -g POWERLEVEL9K_PROXY_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1552.  
  1553.   ################################[ battery: internal battery ]#################################
  1554.   # Show battery in red when it's below this level and not connected to power supply.
  1555.   typeset -g POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20
  1556.   typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=1
  1557.   # Show battery in green when it's charging or fully charged.
  1558.   typeset -g POWERLEVEL9K_BATTERY_{CHARGING,CHARGED}_FOREGROUND=2
  1559.   # Show battery in yellow when it's discharging.
  1560.   typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3
  1561.   # Battery pictograms going from low to high level of charge.
  1562.   typeset -g POWERLEVEL9K_BATTERY_STAGES='\uf58d\uf579\uf57a\uf57b\uf57c\uf57d\uf57e\uf57f\uf580\uf581\uf578'
  1563.   # Don't show the remaining time to charge/discharge.
  1564.   typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false
  1565.   typeset -g POWERLEVEL9K_BATTERY_BACKGROUND=0
  1566.  
  1567.   #####################################[ wifi: wifi speed ]#####################################
  1568.   # WiFi color.
  1569.   typeset -g POWERLEVEL9K_WIFI_FOREGROUND=0
  1570.   typeset -g POWERLEVEL9K_WIFI_BACKGROUND=4
  1571.   # Custom icon.
  1572.   # typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1573.  
  1574.   # Use different colors and icons depending on signal strength ($P9K_WIFI_BARS).
  1575.   #
  1576.   #   # Wifi colors and icons for different signal strength levels (low to high).
  1577.   #   typeset -g my_wifi_fg=(0 0 0 0 0)                                # <-- change these values
  1578.   #   typeset -g my_wifi_icon=('WiFi' 'WiFi' 'WiFi' 'WiFi' 'WiFi')     # <-- change these values
  1579.   #
  1580.   #   typeset -g POWERLEVEL9K_WIFI_CONTENT_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}$P9K_WIFI_LAST_TX_RATE Mbps'
  1581.   #   typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}${my_wifi_icon[P9K_WIFI_BARS+1]}'
  1582.   #
  1583.   # The following parameters are accessible within the expansions:
  1584.   #
  1585.   #   Parameter             | Meaning
  1586.   #   ----------------------+---------------
  1587.   #   P9K_WIFI_SSID         | service set identifier, a.k.a. network name
  1588.   #   P9K_WIFI_LINK_AUTH    | authentication protocol such as "wpa2-psk" or "none"; empty if unknown
  1589.   #   P9K_WIFI_LAST_TX_RATE | wireless transmit rate in megabits per second
  1590.   #   P9K_WIFI_RSSI         | signal strength in dBm, from -120 to 0
  1591.   #   P9K_WIFI_NOISE        | noise in dBm, from -120 to 0
  1592.   #   P9K_WIFI_BARS         | signal strength in bars, from 0 to 4 (derived from P9K_WIFI_RSSI and P9K_WIFI_NOISE)
  1593.  
  1594.   ####################################[ time: current time ]####################################
  1595.   # Current time color.
  1596.   typeset -g POWERLEVEL9K_TIME_FOREGROUND=38
  1597.   typeset -g POWERLEVEL9K_TIME_BACKGROUND=15
  1598.   # Format for the current time: 09:51:02. See `man 3 strftime`.
  1599.   typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'
  1600.   # If set to true, time will update when you hit enter. This way prompts for the past
  1601.   # commands will contain the start times of their commands as opposed to the default
  1602.   # behavior where they contain the end times of their preceding commands.
  1603.   typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false
  1604.   # Custom icon.
  1605.   # typeset -g POWERLEVEL9K_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1606.   # Custom prefix.
  1607.   # typeset -g POWERLEVEL9K_TIME_PREFIX='at '
  1608.  
  1609.   # Example of a user-defined prompt segment. Function prompt_example will be called on every
  1610.   # prompt if `example` prompt segment is added to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or
  1611.   # POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS. It displays an icon and yellow text on red background
  1612.   # greeting the user.
  1613.   #
  1614.   # Type `p10k help segment` for documentation and a more sophisticated example.
  1615.   function prompt_example() {
  1616.     p10k segment -b 1 -f 3 -i '⭐' -t 'hello, %n'
  1617.   }
  1618.  
  1619.   # User-defined prompt segments may optionally provide an instant_prompt_* function. Its job
  1620.   # is to generate the prompt segment for display in instant prompt. See
  1621.   # https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.
  1622.   #
  1623.   # Powerlevel10k will call instant_prompt_* at the same time as the regular prompt_* function
  1624.   # and will record all `p10k segment` calls it makes. When displaying instant prompt, Powerlevel10k
  1625.   # will replay these calls without actually calling instant_prompt_*. It is imperative that
  1626.   # instant_prompt_* always makes the same `p10k segment` calls regardless of environment. If this
  1627.   # rule is not observed, the content of instant prompt will be incorrect.
  1628.   #
  1629.   # Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If
  1630.   # instant_prompt_* is not defined for a segment, the segment won't be shown in instant prompt.
  1631.   function instant_prompt_example() {
  1632.     # Since prompt_example always makes the same `p10k segment` calls, we can call it from
  1633.     # instant_prompt_example. This will give us the same `example` prompt segment in the instant
  1634.     # and regular prompts.
  1635.     prompt_example
  1636.   }
  1637.  
  1638.   # User-defined prompt segments can be customized the same way as built-in segments.
  1639.   typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=3
  1640.   typeset -g POWERLEVEL9K_EXAMPLE_BACKGROUND=1
  1641.   # typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
  1642.  
  1643.   # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt
  1644.   # when accepting a command line. Supported values:
  1645.   #
  1646.   #   - off:      Don't change prompt when accepting a command line.
  1647.   #   - always:   Trim down prompt when accepting a command line.
  1648.   #   - same-dir: Trim down prompt when accepting a command line unless this is the first command
  1649.   #               typed after changing current working directory.
  1650.   typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off
  1651.  
  1652.   # Instant prompt mode.
  1653.   #
  1654.   #   - off:     Disable instant prompt. Choose this if you've tried instant prompt and found
  1655.   #              it incompatible with your zsh configuration files.
  1656.   #   - quiet:   Enable instant prompt and don't print warnings when detecting console output
  1657.   #              during zsh initialization. Choose this if you've read and understood
  1658.   #              https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.
  1659.   #   - verbose: Enable instant prompt and print a warning when detecting console output during
  1660.   #              zsh initialization. Choose this if you've never tried instant prompt, haven't
  1661.   #              seen the warning, or if you are unsure what this all means.
  1662.   typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose
  1663.  
  1664.   # Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
  1665.   # For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
  1666.   # can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you
  1667.   # really need it.
  1668.   typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
  1669.  
  1670.   # If p10k is already loaded, reload configuration.
  1671.   # This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true.
  1672.   (( ! $+functions[p10k] )) || p10k reload
  1673. }
  1674.  
  1675. # Tell `p10k configure` which file it should overwrite.
  1676. typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a}
  1677.  
  1678. (( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]}
  1679. 'builtin' 'unset' 'p10k_config_opts'