Advertisement
Guest User

p10k.zsh

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