mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 09:50:06 +00:00
set separators explicitly
This commit is contained in:
parent
4f482aa7e0
commit
6da969edc1
1 changed files with 25 additions and 23 deletions
|
@ -123,8 +123,7 @@ fi
|
||||||
# POWERLEVEL9K_DIR_NOT_WRITABLE_ICON_BEFORE_CONTENT=false
|
# POWERLEVEL9K_DIR_NOT_WRITABLE_ICON_BEFORE_CONTENT=false
|
||||||
typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT=
|
typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT=
|
||||||
|
|
||||||
# Add an empty line before each prompt. If you set it to false, you might want to
|
# Add an empty line before each prompt.
|
||||||
# set POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR='·' below.
|
|
||||||
typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
|
typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
|
||||||
|
|
||||||
# Connect left prompt lines with these symbols. You'll probably want to use the same color
|
# Connect left prompt lines with these symbols. You'll probably want to use the same color
|
||||||
|
@ -137,10 +136,10 @@ fi
|
||||||
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX='%F{8}─┤'
|
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX='%F{8}─┤'
|
||||||
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX='%F{8}─╯'
|
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX='%F{8}─╯'
|
||||||
|
|
||||||
# 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
|
||||||
# to make it easier to see the alignment between left and right prompt and to separate prompt
|
# '─'. The last two make it easier to see the alignment between left and right prompt and to
|
||||||
# from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false for more
|
# separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
|
||||||
# compact prompt if using using this option.
|
# for more compact prompt if using 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=
|
||||||
if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then
|
if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then
|
||||||
|
@ -153,17 +152,23 @@ fi
|
||||||
typeset -g POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}'
|
typeset -g POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Don't show the trailing segment separator on left prompt lines without any segments.
|
|
||||||
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=''
|
|
||||||
|
|
||||||
# Default background color.
|
# Default background color.
|
||||||
typeset -g POWERLEVEL9K_BACKGROUND=236
|
typeset -g POWERLEVEL9K_BACKGROUND=236
|
||||||
# If two neighbouring segments on the left have the same color, use this separator. It's the
|
|
||||||
# same icon as the default but with different color.
|
# Separator between same-color segments on the left.
|
||||||
typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='%244F\uE0B1'
|
typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='%244F\uE0B1'
|
||||||
# If two neighbouring segments on the right have the same color, use this separator. It's the
|
# Separator between same-color segments on the right.
|
||||||
# same icon as the default but with different color.
|
|
||||||
typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='%244F\uE0B3'
|
typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='%244F\uE0B3'
|
||||||
|
# Separator between different-color segments on the left.
|
||||||
|
typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0B0'
|
||||||
|
# Separator between different-color segments on the right.
|
||||||
|
typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\uE0B2'
|
||||||
|
# Left prompt terminator (rightmost symbol).
|
||||||
|
typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B0'
|
||||||
|
# Right prompt terminator (leftmost symbol).
|
||||||
|
typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0B2'
|
||||||
|
# Left prompt terminator for lines without any segments.
|
||||||
|
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=
|
||||||
|
|
||||||
#################################[ os_icon: os identifier ]##################################
|
#################################[ os_icon: os identifier ]##################################
|
||||||
# Foreground color.
|
# Foreground color.
|
||||||
|
@ -322,14 +327,12 @@ fi
|
||||||
|
|
||||||
# Status when it's just an error code (e.g., '1').
|
# Status when it's just an error code (e.g., '1').
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR=true
|
typeset -g POWERLEVEL9K_STATUS_ERROR=true
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=1
|
typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=1
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=3
|
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='↵'
|
typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='↵'
|
||||||
|
|
||||||
# Status when the last command was terminated by a signal.
|
# Status when the last command was terminated by a signal.
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true
|
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=1
|
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=1
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=3
|
|
||||||
# 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='↵'
|
||||||
|
@ -337,8 +340,7 @@ fi
|
||||||
# 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_BACKGROUND=1
|
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=1
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=3
|
|
||||||
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='↵'
|
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='↵'
|
||||||
|
|
||||||
###################[ command_execution_time: duration of the last command ]###################
|
###################[ command_execution_time: duration of the last command ]###################
|
||||||
|
@ -357,10 +359,10 @@ fi
|
||||||
#######################[ background_jobs: presence of background jobs ]#######################
|
#######################[ background_jobs: presence of background jobs ]#######################
|
||||||
# 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
|
||||||
# Background jobs icon color.
|
# Background jobs color.
|
||||||
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_COLOR=6
|
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=6
|
||||||
# Custom icon.
|
# Icon to show when there are background jobs.
|
||||||
# typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='${P9K_VISUAL_IDENTIFIER}'
|
||||||
|
|
||||||
##########[ nordvpn: nordvpn connection status, linux only (https://nordvpn.com/) ]###########
|
##########[ nordvpn: nordvpn connection status, linux only (https://nordvpn.com/) ]###########
|
||||||
# NordVPN connection indicator color when connected.
|
# NordVPN connection indicator color when connected.
|
||||||
|
|
Loading…
Reference in a new issue