ascii prompt
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Generated by Powerlevel10k configuration wizard on 2023-05-22 at 17:52 EDT.
|
# Generated by Powerlevel10k configuration wizard on 2023-05-28 at 11:08 BST.
|
||||||
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 16959.
|
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 16959.
|
||||||
# Wizard options: compatible, rainbow, unicode, blurred heads, flat tails, 2 lines,
|
# Wizard options: ascii, rainbow, 2 lines, disconnected, sparse, concise,
|
||||||
# solid, right frame, dark-ornaments, sparse, concise, instant_prompt=verbose.
|
# instant_prompt=verbose.
|
||||||
# Type `p10k configure` to generate another config.
|
# Type `p10k configure` to generate another config.
|
||||||
#
|
#
|
||||||
# Config for Powerlevel10k with powerline prompt style with colorful background.
|
# Config for Powerlevel10k with powerline prompt style with colorful background.
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
# automatically hidden when the input line reaches it. Right prompt above the
|
# automatically hidden when the input line reaches it. Right prompt above the
|
||||||
# last prompt line gets hidden if it would overlap with left prompt.
|
# last prompt line gets hidden if it would overlap with left prompt.
|
||||||
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
|
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
|
||||||
# =========================[ Line #1 ]=========================
|
# =========================[ Line #1 ]=========================
|
||||||
status # exit code of the last command
|
status # exit code of the last command
|
||||||
command_execution_time # duration of the last command
|
command_execution_time # duration of the last command
|
||||||
background_jobs # presence of background jobs
|
background_jobs # presence of background jobs
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
|
# Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
|
||||||
typeset -g POWERLEVEL9K_MODE=compatible
|
typeset -g POWERLEVEL9K_MODE=ascii
|
||||||
# When set to `moderate`, some icons will have an extra space after them. This is meant to avoid
|
# When set to `moderate`, some icons will have an extra space after them. This is meant to avoid
|
||||||
# icon overlap when using non-monospace fonts. When set to `none`, spaces are not added.
|
# icon overlap when using non-monospace fonts. When set to `none`, spaces are not added.
|
||||||
typeset -g POWERLEVEL9K_ICON_PADDING=none
|
typeset -g POWERLEVEL9K_ICON_PADDING=none
|
||||||
@@ -142,21 +142,21 @@
|
|||||||
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX=
|
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX=
|
||||||
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX=
|
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX=
|
||||||
# Connect right prompt lines with these symbols.
|
# Connect right prompt lines with these symbols.
|
||||||
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX='%240F─╮'
|
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX=
|
||||||
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX='%240F─┤'
|
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX=
|
||||||
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX='%240F─╯'
|
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX=
|
||||||
|
|
||||||
# Filler between left and right prompt on the first prompt line. You can set it to ' ', '·' or
|
# Filler between left and right prompt on the first prompt line. You can set it to ' ', '·' or
|
||||||
# '─'. The last two make it easier to see the alignment between left and right prompt and to
|
# '-'. The last two make it easier to see the alignment between left and right prompt and to
|
||||||
# separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
|
# separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
|
||||||
# for more compact prompt if using this option.
|
# for more compact prompt if using this option.
|
||||||
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR='─'
|
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' '
|
||||||
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND=
|
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND=
|
||||||
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND=
|
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND=
|
||||||
if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then
|
if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then
|
||||||
# The color of the filler. You'll probably want to match the color of POWERLEVEL9K_MULTILINE
|
# The color of the filler. You'll probably want to match the color of POWERLEVEL9K_MULTILINE
|
||||||
# ornaments defined above.
|
# ornaments defined above.
|
||||||
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=240
|
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=242
|
||||||
# Start filler from the edge of the screen if there are no left segments on the first line.
|
# Start filler from the edge of the screen if there are no left segments on the first line.
|
||||||
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}'
|
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}'
|
||||||
# End filler on the edge of the screen if there are no right segments on the first line.
|
# End filler on the edge of the screen if there are no right segments on the first line.
|
||||||
@@ -164,17 +164,17 @@
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Separator between same-color segments on the left.
|
# Separator between same-color segments on the left.
|
||||||
typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='\u2502'
|
typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='|'
|
||||||
# Separator between same-color segments on the right.
|
# Separator between same-color segments on the right.
|
||||||
typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='\u2502'
|
typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='|'
|
||||||
# Separator between different-color segments on the left.
|
# Separator between different-color segments on the left.
|
||||||
typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR=''
|
typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR=''
|
||||||
# Separator between different-color segments on the right.
|
# Separator between different-color segments on the right.
|
||||||
typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR=''
|
typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR=''
|
||||||
# The right end of left prompt.
|
# The right end of left prompt.
|
||||||
typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='▓▒░'
|
typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=''
|
||||||
# The left end of right prompt.
|
# The left end of right prompt.
|
||||||
typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='░▒▓'
|
typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL=''
|
||||||
# The left end of left prompt.
|
# The left end of left prompt.
|
||||||
typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=''
|
typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=''
|
||||||
# The right end of right prompt.
|
# The right end of right prompt.
|
||||||
@@ -197,13 +197,13 @@
|
|||||||
# Red prompt symbol if the last command failed.
|
# Red prompt symbol if the last command failed.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196
|
||||||
# Default prompt symbol.
|
# Default prompt symbol.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯'
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='>'
|
||||||
# Prompt symbol in command vi mode.
|
# Prompt symbol in command vi mode.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮'
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='<'
|
||||||
# Prompt symbol in visual vi mode.
|
# Prompt symbol in visual vi mode.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='V'
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='V'
|
||||||
# Prompt symbol in overwrite vi mode.
|
# Prompt symbol in overwrite vi mode.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='▶'
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='^'
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true
|
||||||
# No line terminator if prompt_char is the last segment.
|
# No line terminator if prompt_char is the last segment.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
|
||||||
@@ -292,7 +292,7 @@
|
|||||||
|
|
||||||
# The default icon shown next to non-writable and non-existent directories when
|
# The default icon shown next to non-writable and non-existent directories when
|
||||||
# POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3.
|
# POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3.
|
||||||
typeset -g POWERLEVEL9K_LOCK_ICON='∅'
|
# typeset -g POWERLEVEL9K_LOCK_ICON='⭐'
|
||||||
|
|
||||||
# POWERLEVEL9K_DIR_CLASSES allows you to specify custom icons and colors for different
|
# POWERLEVEL9K_DIR_CLASSES allows you to specify custom icons and colors for different
|
||||||
# directories. It must be an array with 3 * N elements. Each triplet consists of:
|
# directories. It must be an array with 3 * N elements. Each triplet consists of:
|
||||||
@@ -368,7 +368,7 @@
|
|||||||
|
|
||||||
# Formatter for Git status.
|
# Formatter for Git status.
|
||||||
#
|
#
|
||||||
# Example output: master wip ⇣42⇡42 *42 merge ~42 +42 !42 ?42.
|
# Example output: master wip <42>42 *42 merge ~42 +42 !42 ?42.
|
||||||
#
|
#
|
||||||
# You can edit the function to customize how Git status looks.
|
# You can edit the function to customize how Git status looks.
|
||||||
#
|
#
|
||||||
@@ -396,9 +396,9 @@
|
|||||||
if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then
|
if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then
|
||||||
local branch=${(V)VCS_STATUS_LOCAL_BRANCH}
|
local branch=${(V)VCS_STATUS_LOCAL_BRANCH}
|
||||||
# If local branch name is at most 32 characters long, show it in full.
|
# If local branch name is at most 32 characters long, show it in full.
|
||||||
# Otherwise show the first 12 … the last 12.
|
# Otherwise show the first 12 .. the last 12.
|
||||||
# Tip: To always show local branch name in full without truncation, delete the next line.
|
# Tip: To always show local branch name in full without truncation, delete the next line.
|
||||||
(( $#branch > 32 )) && branch[13,-13]="…" # <-- this line
|
(( $#branch > 32 )) && branch[13,-13]=".." # <-- this line
|
||||||
res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\%/%%}"
|
res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\%/%%}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -409,9 +409,9 @@
|
|||||||
]]; then
|
]]; then
|
||||||
local tag=${(V)VCS_STATUS_TAG}
|
local tag=${(V)VCS_STATUS_TAG}
|
||||||
# If tag name is at most 32 characters long, show it in full.
|
# If tag name is at most 32 characters long, show it in full.
|
||||||
# Otherwise show the first 12 … the last 12.
|
# Otherwise show the first 12 .. the last 12.
|
||||||
# Tip: To always show tag name in full without truncation, delete the next line.
|
# Tip: To always show tag name in full without truncation, delete the next line.
|
||||||
(( $#tag > 32 )) && tag[13,-13]="…" # <-- this line
|
(( $#tag > 32 )) && tag[13,-13]=".." # <-- this line
|
||||||
res+="${meta}#${clean}${tag//\%/%%}"
|
res+="${meta}#${clean}${tag//\%/%%}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -430,16 +430,16 @@
|
|||||||
res+=" ${modified}wip"
|
res+=" ${modified}wip"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ⇣42 if behind the remote.
|
# <42 if behind the remote.
|
||||||
(( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}"
|
(( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}<${VCS_STATUS_COMMITS_BEHIND}"
|
||||||
# ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42.
|
# >42 if ahead of the remote; no leading space if also behind the remote: <42>42.
|
||||||
(( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" "
|
(( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" "
|
||||||
(( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}"
|
(( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}>${VCS_STATUS_COMMITS_AHEAD}"
|
||||||
# ⇠42 if behind the push remote.
|
# <-42 if behind the push remote.
|
||||||
(( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}⇠${VCS_STATUS_PUSH_COMMITS_BEHIND}"
|
(( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}<-${VCS_STATUS_PUSH_COMMITS_BEHIND}"
|
||||||
(( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" "
|
(( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" "
|
||||||
# ⇢42 if ahead of the push remote; no leading space if also behind: ⇠42⇢42.
|
# ->42 if ahead of the push remote; no leading space if also behind: <-42->42.
|
||||||
(( VCS_STATUS_PUSH_COMMITS_AHEAD )) && res+="${clean}⇢${VCS_STATUS_PUSH_COMMITS_AHEAD}"
|
(( VCS_STATUS_PUSH_COMMITS_AHEAD )) && res+="${clean}->${VCS_STATUS_PUSH_COMMITS_AHEAD}"
|
||||||
# *42 if have stashes.
|
# *42 if have stashes.
|
||||||
(( VCS_STATUS_STASHES )) && res+=" ${clean}*${VCS_STATUS_STASHES}"
|
(( VCS_STATUS_STASHES )) && res+=" ${clean}*${VCS_STATUS_STASHES}"
|
||||||
# 'merge' if the repo is in an unusual state.
|
# 'merge' if the repo is in an unusual state.
|
||||||
@@ -454,12 +454,12 @@
|
|||||||
# See POWERLEVEL9K_VCS_UNTRACKED_ICON above if you want to use a different icon.
|
# See POWERLEVEL9K_VCS_UNTRACKED_ICON above if you want to use a different icon.
|
||||||
# Remove the next line if you don't want to see untracked files at all.
|
# Remove the next line if you don't want to see untracked files at all.
|
||||||
(( VCS_STATUS_NUM_UNTRACKED )) && res+=" ${untracked}${(g::)POWERLEVEL9K_VCS_UNTRACKED_ICON}${VCS_STATUS_NUM_UNTRACKED}"
|
(( VCS_STATUS_NUM_UNTRACKED )) && res+=" ${untracked}${(g::)POWERLEVEL9K_VCS_UNTRACKED_ICON}${VCS_STATUS_NUM_UNTRACKED}"
|
||||||
# "─" if the number of unstaged files is unknown. This can happen due to
|
# "-" if the number of unstaged files is unknown. This can happen due to
|
||||||
# POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY (see below) being set to a non-negative number lower
|
# POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY (see below) being set to a non-negative number lower
|
||||||
# than the number of files in the Git index, or due to bash.showDirtyState being set to false
|
# than the number of files in the Git index, or due to bash.showDirtyState being set to false
|
||||||
# in the repository config. The number of staged and untracked files may also be unknown
|
# in the repository config. The number of staged and untracked files may also be unknown
|
||||||
# in this case.
|
# in this case.
|
||||||
(( VCS_STATUS_HAS_UNSTAGED == -1 )) && res+=" ${modified}─"
|
(( VCS_STATUS_HAS_UNSTAGED == -1 )) && res+=" ${modified}-"
|
||||||
|
|
||||||
typeset -g my_git_format=$res
|
typeset -g my_git_format=$res
|
||||||
}
|
}
|
||||||
@@ -504,21 +504,21 @@
|
|||||||
# Status on success. No content, just an icon. No need to show it if prompt_char is enabled as
|
# Status on success. No content, just an icon. No need to show it if prompt_char is enabled as
|
||||||
# it will signify success by turning green.
|
# it will signify success by turning green.
|
||||||
typeset -g POWERLEVEL9K_STATUS_OK=false
|
typeset -g POWERLEVEL9K_STATUS_OK=false
|
||||||
typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔'
|
typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='ok'
|
||||||
typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=2
|
typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=2
|
||||||
typeset -g POWERLEVEL9K_STATUS_OK_BACKGROUND=0
|
typeset -g POWERLEVEL9K_STATUS_OK_BACKGROUND=0
|
||||||
|
|
||||||
# Status when some part of a pipe command fails but the overall exit status is zero. It may look
|
# Status when some part of a pipe command fails but the overall exit status is zero. It may look
|
||||||
# like this: 1|0.
|
# like this: 1|0.
|
||||||
typeset -g POWERLEVEL9K_STATUS_OK_PIPE=true
|
typeset -g POWERLEVEL9K_STATUS_OK_PIPE=true
|
||||||
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔'
|
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='ok'
|
||||||
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=2
|
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=2
|
||||||
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_BACKGROUND=0
|
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_BACKGROUND=0
|
||||||
|
|
||||||
# Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as
|
# Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as
|
||||||
# it will signify error by turning red.
|
# it will signify error by turning red.
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR=false
|
typeset -g POWERLEVEL9K_STATUS_ERROR=false
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='х'
|
typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='err'
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=3
|
typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=3
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=1
|
typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=1
|
||||||
|
|
||||||
@@ -526,14 +526,14 @@
|
|||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true
|
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true
|
||||||
# Use terse signal names: "INT" instead of "SIGINT(2)".
|
# Use terse signal names: "INT" instead of "SIGINT(2)".
|
||||||
typeset -g POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false
|
typeset -g POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION='х'
|
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION=
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=3
|
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=3
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=1
|
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=1
|
||||||
|
|
||||||
# Status when some part of a pipe command fails and the overall exit status is also non-zero.
|
# Status when some part of a pipe command fails and the overall exit status is also non-zero.
|
||||||
# It may look like this: 1|0.
|
# It may look like this: 1|0.
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE=true
|
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE=true
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='х'
|
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='err'
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=3
|
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=3
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_BACKGROUND=1
|
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_BACKGROUND=1
|
||||||
|
|
||||||
@@ -559,7 +559,7 @@
|
|||||||
# Don't show the number of background jobs.
|
# Don't show the number of background jobs.
|
||||||
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false
|
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='≡'
|
# typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
#######################[ direnv: direnv status (https://direnv.net/) ]########################
|
#######################[ direnv: direnv status (https://direnv.net/) ]########################
|
||||||
# Direnv color.
|
# Direnv color.
|
||||||
@@ -734,14 +734,14 @@
|
|||||||
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION=
|
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION=
|
||||||
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION=
|
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION=
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
typeset -g POWERLEVEL9K_NORDVPN_VISUAL_IDENTIFIER_EXPANSION='nord'
|
# typeset -g POWERLEVEL9K_NORDVPN_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
#################[ ranger: ranger shell (https://github.com/ranger/ranger) ]##################
|
#################[ ranger: ranger shell (https://github.com/ranger/ranger) ]##################
|
||||||
# Ranger shell color.
|
# Ranger shell color.
|
||||||
typeset -g POWERLEVEL9K_RANGER_FOREGROUND=3
|
typeset -g POWERLEVEL9K_RANGER_FOREGROUND=3
|
||||||
typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0
|
typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='▲'
|
# typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]#######################
|
######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]#######################
|
||||||
# Nnn shell color.
|
# Nnn shell color.
|
||||||
@@ -883,11 +883,11 @@
|
|||||||
typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=255
|
typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=255
|
||||||
typeset -g POWERLEVEL9K_TIMEWARRIOR_BACKGROUND=8
|
typeset -g POWERLEVEL9K_TIMEWARRIOR_BACKGROUND=8
|
||||||
|
|
||||||
# If the tracked task is longer than 24 characters, truncate and append "…".
|
# If the tracked task is longer than 24 characters, truncate and append "..".
|
||||||
# Tip: To always display tasks without truncation, delete the following parameter.
|
# Tip: To always display tasks without truncation, delete the following parameter.
|
||||||
# Tip: To hide task names and display just the icon when time tracking is enabled, set the
|
# Tip: To hide task names and display just the icon when time tracking is enabled, set the
|
||||||
# value of the following parameter to "".
|
# value of the following parameter to "".
|
||||||
typeset -g POWERLEVEL9K_TIMEWARRIOR_CONTENT_EXPANSION='${P9K_CONTENT:0:24}${${P9K_CONTENT:24}:+…}'
|
typeset -g POWERLEVEL9K_TIMEWARRIOR_CONTENT_EXPANSION='${P9K_CONTENT:0:24}${${P9K_CONTENT:24}:+..}'
|
||||||
|
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
# typeset -g POWERLEVEL9K_TIMEWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_TIMEWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
@@ -945,7 +945,7 @@
|
|||||||
|
|
||||||
# Don't show context unless running with privileges or in SSH.
|
# Don't show context unless running with privileges or in SSH.
|
||||||
# Tip: Remove the next line to always show context.
|
# Tip: Remove the next line to always show context.
|
||||||
typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
|
#typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
|
||||||
|
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
# typeset -g POWERLEVEL9K_CONTEXT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_CONTEXT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
@@ -1367,7 +1367,7 @@
|
|||||||
'*' DEFAULT)
|
'*' DEFAULT)
|
||||||
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=7
|
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=7
|
||||||
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_BACKGROUND=5
|
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_BACKGROUND=5
|
||||||
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='○'
|
# typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
# Use POWERLEVEL9K_KUBECONTEXT_CONTENT_EXPANSION to specify the content displayed by kubecontext
|
# Use POWERLEVEL9K_KUBECONTEXT_CONTENT_EXPANSION to specify the content displayed by kubecontext
|
||||||
# segment. Parameter expansions are very flexible and fast, too. See reference:
|
# segment. Parameter expansions are very flexible and fast, too. See reference:
|
||||||
@@ -1465,7 +1465,7 @@
|
|||||||
typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=2
|
typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=2
|
||||||
typeset -g POWERLEVEL9K_AWS_EB_ENV_BACKGROUND=0
|
typeset -g POWERLEVEL9K_AWS_EB_ENV_BACKGROUND=0
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION='eb'
|
# typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]##########
|
##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]##########
|
||||||
# Show azure only when the command you are typing invokes one of these tools.
|
# Show azure only when the command you are typing invokes one of these tools.
|
||||||
@@ -1475,7 +1475,7 @@
|
|||||||
typeset -g POWERLEVEL9K_AZURE_FOREGROUND=7
|
typeset -g POWERLEVEL9K_AZURE_FOREGROUND=7
|
||||||
typeset -g POWERLEVEL9K_AZURE_BACKGROUND=4
|
typeset -g POWERLEVEL9K_AZURE_BACKGROUND=4
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='az'
|
# typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
||||||
##########[ gcloud: google cloud account and project (https://cloud.google.com/) ]###########
|
##########[ gcloud: google cloud account and project (https://cloud.google.com/) ]###########
|
||||||
# Show gcloud only when the command you are typing invokes one of these tools.
|
# Show gcloud only when the command you are typing invokes one of these tools.
|
||||||
@@ -1625,7 +1625,7 @@
|
|||||||
# P9K_IP_TX_BYTES_DELTA | number of bytes sent since last prompt
|
# P9K_IP_TX_BYTES_DELTA | number of bytes sent since last prompt
|
||||||
# P9K_IP_RX_RATE | receive rate (since last prompt)
|
# P9K_IP_RX_RATE | receive rate (since last prompt)
|
||||||
# P9K_IP_TX_RATE | send rate (since last prompt)
|
# P9K_IP_TX_RATE | send rate (since last prompt)
|
||||||
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'
|
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'
|
||||||
# Show information for the first network interface whose name matches this regular expression.
|
# Show information for the first network interface whose name matches this regular expression.
|
||||||
# Run `ifconfig` or `ip -4 a show` to see the names of all network interfaces.
|
# Run `ifconfig` or `ip -4 a show` to see the names of all network interfaces.
|
||||||
typeset -g POWERLEVEL9K_IP_INTERFACE='[ew].*'
|
typeset -g POWERLEVEL9K_IP_INTERFACE='[ew].*'
|
||||||
@@ -1648,7 +1648,7 @@
|
|||||||
# Show battery in yellow when it's discharging.
|
# Show battery in yellow when it's discharging.
|
||||||
typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3
|
typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3
|
||||||
# Battery pictograms going from low to high level of charge.
|
# Battery pictograms going from low to high level of charge.
|
||||||
typeset -g POWERLEVEL9K_BATTERY_STAGES=('%K{232}▁' '%K{232}▂' '%K{232}▃' '%K{232}▄' '%K{232}▅' '%K{232}▆' '%K{232}▇' '%K{232}█')
|
typeset -g POWERLEVEL9K_BATTERY_STAGES=('battery')
|
||||||
# Don't show the remaining time to charge/discharge.
|
# Don't show the remaining time to charge/discharge.
|
||||||
typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false
|
typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false
|
||||||
typeset -g POWERLEVEL9K_BATTERY_BACKGROUND=0
|
typeset -g POWERLEVEL9K_BATTERY_BACKGROUND=0
|
||||||
@@ -1702,7 +1702,7 @@
|
|||||||
#
|
#
|
||||||
# Type `p10k help segment` for documentation and a more sophisticated example.
|
# Type `p10k help segment` for documentation and a more sophisticated example.
|
||||||
function prompt_example() {
|
function prompt_example() {
|
||||||
p10k segment -b 1 -f 3 -i '⭐' -t 'hello, %n'
|
p10k segment -b 1 -f 3 -i '*' -t 'hello, %n'
|
||||||
}
|
}
|
||||||
|
|
||||||
# User-defined prompt segments may optionally provide an instant_prompt_* function. Its job
|
# User-defined prompt segments may optionally provide an instant_prompt_* function. Its job
|
||||||
|
|||||||
Reference in New Issue
Block a user