mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-23 01:56:25 +00:00
chore(shell): p10k config docs line width
This commit is contained in:
@@ -6,7 +6,8 @@
|
|||||||
# transient_prompt, instant_prompt=verbose.
|
# transient_prompt, instant_prompt=verbose.
|
||||||
# Type `p10k configure` to generate another config.
|
# Type `p10k configure` to generate another config.
|
||||||
#
|
#
|
||||||
# Config file for Powerlevel10k with the style of Pure (https://github.com/sindresorhus/pure).
|
# Config file for Powerlevel10k with the style of Pure
|
||||||
|
# (https://github.com/sindresorhus/pure).
|
||||||
#
|
#
|
||||||
# Differences from Pure:
|
# Differences from Pure:
|
||||||
#
|
#
|
||||||
@@ -14,13 +15,16 @@
|
|||||||
# - `@c4d3ec2c` instead of something like `v1.4.0~11` when in detached HEAD state.
|
# - `@c4d3ec2c` instead of something like `v1.4.0~11` when in detached HEAD state.
|
||||||
# - No automatic `git fetch` (the same as in Pure with `PURE_GIT_PULL=0`).
|
# - No automatic `git fetch` (the same as in Pure with `PURE_GIT_PULL=0`).
|
||||||
#
|
#
|
||||||
# Apart from the differences listed above, the replication of Pure prompt is exact. This includes
|
# Apart from the differences listed above, the replication of Pure
|
||||||
# even the questionable parts. For example, just like in Pure, there is no indication of Git status
|
# prompt is exact. This includes even the questionable parts.
|
||||||
# being stale; prompt symbol is the same in command, visual and overwrite vi modes; when prompt
|
# For example, just like in Pure, there is no indication of Git status
|
||||||
# doesn't fit on one line, it wraps around with no attempt to shorten it.
|
# being stale; prompt symbol is the same in command, visual and overwrite
|
||||||
|
# vi modes; when prompt doesn't fit on one line, it wraps around with
|
||||||
|
# no attempt to shorten it.
|
||||||
#
|
#
|
||||||
# If you like the general style of Pure but not particularly attached to all its quirks, type
|
# If you like the general style of Pure but not particularly attached
|
||||||
# `p10k configure` and pick "Lean" style. This will give you slick minimalist prompt while taking
|
# to all its quirks, type `p10k configure` and pick "Lean" style.
|
||||||
|
# This will give you slick minimalist prompt while taking
|
||||||
# advantage of Powerlevel10k features that aren't present in Pure.
|
# advantage of Powerlevel10k features that aren't present in Pure.
|
||||||
|
|
||||||
# Temporarily change options.
|
# Temporarily change options.
|
||||||
@@ -83,8 +87,9 @@
|
|||||||
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SEGMENT_SEPARATOR= # no end-of-line symbol
|
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SEGMENT_SEPARATOR= # no end-of-line symbol
|
||||||
typeset -g POWERLEVEL9K_VISUAL_IDENTIFIER_EXPANSION= # no segment icons
|
typeset -g POWERLEVEL9K_VISUAL_IDENTIFIER_EXPANSION= # no segment icons
|
||||||
|
|
||||||
# Add an empty line before each prompt except the first. This doesn't emulate the bug
|
# Add an empty line before each prompt except the first. This doesn't
|
||||||
# in Pure that makes prompt drift down whenever you use the Alt-C binding from fzf or similar.
|
# emulate the bug in Pure that makes prompt drift down whenever you use
|
||||||
|
# the Alt-C binding from fzf or similar.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
|
typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
|
||||||
|
|
||||||
# Magenta prompt symbol if the last command succeeded.
|
# Magenta prompt symbol if the last command succeeded.
|
||||||
@@ -125,15 +130,17 @@
|
|||||||
# Yellow previous command duration.
|
# Yellow previous command duration.
|
||||||
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=$yellow
|
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=$yellow
|
||||||
|
|
||||||
# Grey Git prompt. This makes stale prompts indistinguishable from up-to-date ones.
|
# Grey Git prompt. This makes stale prompts indistinguishable
|
||||||
|
# from up-to-date ones.
|
||||||
typeset -g POWERLEVEL9K_VCS_FOREGROUND=$grey
|
typeset -g POWERLEVEL9K_VCS_FOREGROUND=$grey
|
||||||
|
|
||||||
# Disable async loading indicator to make directories that aren't Git repositories
|
# Disable async loading indicator to make directories that aren't
|
||||||
# indistinguishable from large Git repositories without known state.
|
# Git repositories indistinguishable from large Git repositories
|
||||||
|
# without known state.
|
||||||
typeset -g POWERLEVEL9K_VCS_LOADING_TEXT=
|
typeset -g POWERLEVEL9K_VCS_LOADING_TEXT=
|
||||||
|
|
||||||
# Don't wait for Git status even for a millisecond, so that prompt always updates
|
# Don't wait for Git status even for a millisecond, so that
|
||||||
# asynchronously when Git state changes.
|
# prompt always updates asynchronously when Git state changes.
|
||||||
typeset -g POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS=0
|
typeset -g POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS=0
|
||||||
|
|
||||||
# Cyan ahead/behind arrows.
|
# Cyan ahead/behind arrows.
|
||||||
@@ -161,36 +168,42 @@
|
|||||||
typeset -g POWERLEVEL9K_TIME_FOREGROUND=$grey
|
typeset -g POWERLEVEL9K_TIME_FOREGROUND=$grey
|
||||||
# Format for the current time: 09:51:02. See `man 3 strftime`.
|
# Format for the current time: 09:51:02. See `man 3 strftime`.
|
||||||
typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'
|
typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'
|
||||||
# If set to true, time will update when you hit enter. This way prompts for the past
|
|
||||||
# commands will contain the start times of their commands rather than the end times of
|
# If set to true, time will update when you hit enter. This way prompts
|
||||||
# their preceding commands.
|
# for the past commands will contain the start times of their commands
|
||||||
|
# rather than the end times of their preceding commands.
|
||||||
typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false
|
typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false
|
||||||
|
|
||||||
# Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt
|
# Transient prompt works similarly to the builtin transient_rprompt option.
|
||||||
# when accepting a command line. Supported values:
|
# It trims down prompt when accepting a command line. Supported values:
|
||||||
#
|
#
|
||||||
# - off: Don't change prompt when accepting a command line.
|
# - off: Don't change prompt when accepting a command line.
|
||||||
# - always: Trim down prompt when accepting a command line.
|
# - always: Trim down prompt when accepting a command line.
|
||||||
# - same-dir: Trim down prompt when accepting a command line unless this is the first command
|
# - same-dir: Trim down prompt when accepting a command line
|
||||||
# typed after changing current working directory.
|
# unless this is the first command typed after
|
||||||
|
# changing current working directory.
|
||||||
typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=always
|
typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=always
|
||||||
|
|
||||||
# Instant prompt mode.
|
# Instant prompt mode.
|
||||||
#
|
#
|
||||||
# - off: Disable instant prompt. Choose this if you've tried instant prompt and found
|
# - off: Disable instant prompt. Choose this if you've tried
|
||||||
# it incompatible with your zsh configuration files.
|
# instant prompt and found it incompatible with your
|
||||||
# - quiet: Enable instant prompt and don't print warnings when detecting console output
|
# zsh configuration files.
|
||||||
# during zsh initialization. Choose this if you've read and understood
|
# - quiet: Enable instant prompt and don't print warnings when
|
||||||
|
# detecting console output during zsh initialization.
|
||||||
|
# Choose this if you've read and understood
|
||||||
# https://github.com/romkatv/powerlevel10k#instant-prompt.
|
# https://github.com/romkatv/powerlevel10k#instant-prompt.
|
||||||
# - verbose: Enable instant prompt and print a warning when detecting console output during
|
# - verbose: Enable instant prompt and print a warning when detecting
|
||||||
# zsh initialization. Choose this if you've never tried instant prompt, haven't
|
# console output during zsh initialization. Choose this
|
||||||
# seen the warning, or if you are unsure what this all means.
|
# if you've never tried instant prompt, haven't seen the
|
||||||
|
# warning, or if you are unsure what this all means.
|
||||||
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
|
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
|
||||||
|
|
||||||
# Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
|
# Hot reload allows you to change POWERLEVEL9K options after
|
||||||
# For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
|
# Powerlevel10k has been initialized. For example, you can type
|
||||||
# can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you
|
# POWERLEVEL9K_BACKGROUND=red and see your prompt turn red.
|
||||||
# really need it.
|
# Hot reload can slow down prompt by 1-2 milliseconds, so it's
|
||||||
|
# better to keep it turned off unless you really need it.
|
||||||
typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
|
typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
|
||||||
|
|
||||||
# If p10k is already loaded, reload configuration.
|
# If p10k is already loaded, reload configuration.
|
||||||
|
|||||||
Reference in New Issue
Block a user