powerlevel10k/internal
romkatv 9a8a6ca836 allow prompt segments to be disabled through configuration options
Prompt segment `foo` doesn't get evaluated or shown on the left
if `${POWERLEVEL9K_FOO_LEFT_DISABLED-$POWERLEVEL9K_FOO_DISABLED}`
is equal to `true`.

Example:

    POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir)
    POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(dir)

  - By default `dir` is shown on the left and on the right.
  - `POWERLEVEL9K_DIR_LEFT_DISABLED=true` disables `dir` on the left.
  - `POWERLEVEL9K_DIR_RIGHT_DISABLED=true` disables `dir` on the right.
  - `POWERLEVEL9K_DIR_DISABLED=true` disables `dir` everywhere.

Note that it's possible to hide segments without disabling their
evaluation through expansions. For example:

  POWERLEVEL9K_DIR_CONTENT_EXPANSION='${HIDE_DIR-$P9K_CONTENT}'
  POWERLEVEL9K_DIR_VISUAL_IDENTIFIER_EXPANSION='${HIDE_DIR-$P9K_VISUAL_IDENTIFIER}'

With these settings, `HIDE_DIR=''` hides `dir` while `unset HIDE_DIR`
restores it.

fixes #205
2019-09-07 10:05:56 +02:00
..
configure.zsh wizard: fix handling for $ZDOTDIR and $HOME with special symbols ("%", "$", etc.) 2019-09-06 11:30:11 +02:00
icons.zsh disable or substitute "compatible" icons that cannot be displayed by the stock Menlo on macOS 2019-09-07 09:28:45 +02:00
p10k.zsh allow prompt segments to be disabled through configuration options 2019-09-07 10:05:56 +02:00
wizard.zsh disable or substitute "compatible" icons that cannot be displayed by the stock Menlo on macOS 2019-09-07 09:28:45 +02:00