|
|
@ -128,13 +128,13 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
# as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND below.
|
|
|
|
# as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND below.
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%F{8}╭─'
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%F{240}╭─'
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX='%F{8}├─'
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX='%F{240}├─'
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%F{8}╰─'
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%F{240}╰─'
|
|
|
|
# Connect right prompt lines with these symbols.
|
|
|
|
# Connect right prompt lines with these symbols.
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX='%F{8}─╮'
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX='%F{240}─╮'
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX='%F{8}─┤'
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX='%F{240}─┤'
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX='%F{8}─╯'
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX='%F{240}─╯'
|
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
@ -145,7 +145,7 @@ fi
|
|
|
|
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=8
|
|
|
|
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=240
|
|
|
|
# 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.
|
|
|
@ -178,14 +178,14 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
##################################[ dir: current directory ]##################################
|
|
|
|
##################################[ dir: current directory ]##################################
|
|
|
|
# Default current directory color.
|
|
|
|
# Default current directory color.
|
|
|
|
typeset -g POWERLEVEL9K_DIR_FOREGROUND=12
|
|
|
|
typeset -g POWERLEVEL9K_DIR_FOREGROUND=31
|
|
|
|
# If directory is too long, shorten some of its segments to the shortest possible unique
|
|
|
|
# If directory is too long, shorten some of its segments to the shortest possible unique
|
|
|
|
# prefix. The shortened directory can be tab-completed to the original.
|
|
|
|
# prefix. The shortened directory can be tab-completed to the original.
|
|
|
|
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
|
|
|
|
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
|
|
|
|
# Replace removed segment suffixes with this symbol.
|
|
|
|
# Replace removed segment suffixes with this symbol.
|
|
|
|
typeset -g POWERLEVEL9K_SHORTEN_DELIMITER=
|
|
|
|
typeset -g POWERLEVEL9K_SHORTEN_DELIMITER=
|
|
|
|
# Color of the shortened directory segments.
|
|
|
|
# Color of the shortened directory segments.
|
|
|
|
typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=4
|
|
|
|
typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=103
|
|
|
|
# Color of the anchor directory segments. Anchor segments are never shortened. The first
|
|
|
|
# Color of the anchor directory segments. Anchor segments are never shortened. The first
|
|
|
|
# segment is always an anchor.
|
|
|
|
# segment is always an anchor.
|
|
|
|
typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=39
|
|
|
|
typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=39
|
|
|
@ -270,11 +270,11 @@ fi
|
|
|
|
# ~42 if have merge conflicts.
|
|
|
|
# ~42 if have merge conflicts.
|
|
|
|
vcs+='${${VCS_STATUS_NUM_CONFLICTED:#0}:+ %196F~${VCS_STATUS_NUM_CONFLICTED}}'
|
|
|
|
vcs+='${${VCS_STATUS_NUM_CONFLICTED:#0}:+ %196F~${VCS_STATUS_NUM_CONFLICTED}}'
|
|
|
|
# +42 if have staged changes.
|
|
|
|
# +42 if have staged changes.
|
|
|
|
vcs+='${${VCS_STATUS_NUM_STAGED:#0}:+ %11F+${VCS_STATUS_NUM_STAGED}}'
|
|
|
|
vcs+='${${VCS_STATUS_NUM_STAGED:#0}:+ %227F+${VCS_STATUS_NUM_STAGED}}'
|
|
|
|
# !42 if have unstaged changes.
|
|
|
|
# !42 if have unstaged changes.
|
|
|
|
vcs+='${${VCS_STATUS_NUM_UNSTAGED:#0}:+ %11F!${VCS_STATUS_NUM_UNSTAGED}}'
|
|
|
|
vcs+='${${VCS_STATUS_NUM_UNSTAGED:#0}:+ %227F!${VCS_STATUS_NUM_UNSTAGED}}'
|
|
|
|
# ?42 if have untracked files.
|
|
|
|
# ?42 if have untracked files.
|
|
|
|
vcs+='${${VCS_STATUS_NUM_UNTRACKED:#0}:+ %75F?${VCS_STATUS_NUM_UNTRACKED}}'
|
|
|
|
vcs+='${${VCS_STATUS_NUM_UNTRACKED:#0}:+ %39F?${VCS_STATUS_NUM_UNTRACKED}}'
|
|
|
|
# If P9K_CONTENT is not empty, leave it unchanged. It's either "loading" or from vcs_info.
|
|
|
|
# If P9K_CONTENT is not empty, leave it unchanged. It's either "loading" or from vcs_info.
|
|
|
|
vcs="\${P9K_CONTENT:-$vcs}"
|
|
|
|
vcs="\${P9K_CONTENT:-$vcs}"
|
|
|
|
|
|
|
|
|
|
|
@ -316,23 +316,23 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
# Status on success. No content, just an icon.
|
|
|
|
# Status on success. No content, just an icon.
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_OK=true
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_OK=true
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=2
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=70
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔'
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔'
|
|
|
|
|
|
|
|
|
|
|
|
# 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_FOREGROUND=2
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=70
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔'
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔'
|
|
|
|
|
|
|
|
|
|
|
|
# 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_FOREGROUND=1
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=160
|
|
|
|
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_FOREGROUND=1
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=160
|
|
|
|
# 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='↵'
|
|
|
@ -340,7 +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_FOREGROUND=1
|
|
|
|
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=160
|
|
|
|
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 ]###################
|
|
|
@ -360,31 +360,26 @@ fi
|
|
|
|
# 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 color.
|
|
|
|
# Background jobs color.
|
|
|
|
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=6
|
|
|
|
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=37
|
|
|
|
# Icon to show when there are background jobs.
|
|
|
|
# Icon to show when there are background jobs.
|
|
|
|
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='${P9K_VISUAL_IDENTIFIER}'
|
|
|
|
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.
|
|
|
|
typeset -g POWERLEVEL9K_NORDVPN_CONNECTED_FOREGROUND=2
|
|
|
|
typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=39
|
|
|
|
# NordVPN connection indicator color when not connected.
|
|
|
|
# Hide NordVPN connection indicator when not connected.
|
|
|
|
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_FOREGROUND=3
|
|
|
|
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION=
|
|
|
|
# Custom icons.
|
|
|
|
typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION=
|
|
|
|
# typeset -g POWERLEVEL9K_NORDVPN_CONNECTED_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# Custom icon.
|
|
|
|
# typeset -g POWERLEVEL9K_NORDVPN_DISCONNECTED_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# typeset -g POWERLEVEL9K_NORDVPN_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# typeset -g POWERLEVEL9K_NORDVPN_CONNECTING_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
# typeset -g POWERLEVEL9K_NORDVPN_DISCONNECTING_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
# Uncomment these two lines to hide NordVPN connection indicator when not connected.
|
|
|
|
|
|
|
|
# typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION=
|
|
|
|
|
|
|
|
# typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
####################################[ context: user@host ]####################################
|
|
|
|
####################################[ context: user@host ]####################################
|
|
|
|
# Context format: user@host.
|
|
|
|
# Context format: user@host.
|
|
|
|
typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m'
|
|
|
|
typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m'
|
|
|
|
# Default context color.
|
|
|
|
# Default context color.
|
|
|
|
typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=12
|
|
|
|
typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180
|
|
|
|
# Context color when running with privileges.
|
|
|
|
# Context color when running with privileges.
|
|
|
|
typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=11
|
|
|
|
typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=227
|
|
|
|
# Don't show context unless running with privileges on in SSH.
|
|
|
|
# Don't show context unless running with privileges on in SSH.
|
|
|
|
typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
|
|
|
|
typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
|
|
|
|
typeset -g POWERLEVEL9K_ALWAYS_SHOW_CONTEXT=true
|
|
|
|
typeset -g POWERLEVEL9K_ALWAYS_SHOW_CONTEXT=true
|
|
|
@ -395,7 +390,7 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
###[ virtualenv: python virtual environment (https://docs.python.org/3/library/venv.html) ]###
|
|
|
|
###[ virtualenv: python virtual environment (https://docs.python.org/3/library/venv.html) ]###
|
|
|
|
# Python virtual environment color.
|
|
|
|
# Python virtual environment color.
|
|
|
|
typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=6
|
|
|
|
typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=37
|
|
|
|
# Show Python version next to the virtual environment name.
|
|
|
|
# Show Python version next to the virtual environment name.
|
|
|
|
typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=true
|
|
|
|
typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=true
|
|
|
|
# Separate environment name from Python version only with a space.
|
|
|
|
# Separate environment name from Python version only with a space.
|
|
|
@ -405,7 +400,7 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
#####################[ anaconda: conda environment (https://conda.io/) ]######################
|
|
|
|
#####################[ anaconda: conda environment (https://conda.io/) ]######################
|
|
|
|
# Anaconda environment color.
|
|
|
|
# Anaconda environment color.
|
|
|
|
typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=6
|
|
|
|
typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=37
|
|
|
|
# Show Python version next to the anaconda environment name.
|
|
|
|
# Show Python version next to the anaconda environment name.
|
|
|
|
typeset -g POWERLEVEL9K_ANACONDA_SHOW_PYTHON_VERSION=true
|
|
|
|
typeset -g POWERLEVEL9K_ANACONDA_SHOW_PYTHON_VERSION=true
|
|
|
|
# Separate environment name from Python version only with a space.
|
|
|
|
# Separate environment name from Python version only with a space.
|
|
|
@ -415,7 +410,7 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
################[ pyenv: python environment (https://github.com/pyenv/pyenv) ]################
|
|
|
|
################[ pyenv: python environment (https://github.com/pyenv/pyenv) ]################
|
|
|
|
# Pyenv color.
|
|
|
|
# Pyenv color.
|
|
|
|
typeset -g POWERLEVEL9K_PYENV_FOREGROUND=6
|
|
|
|
typeset -g POWERLEVEL9K_PYENV_FOREGROUND=37
|
|
|
|
# Don't show the current Python version if it's the same as global.
|
|
|
|
# Don't show the current Python version if it's the same as global.
|
|
|
|
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
|
|
|
|
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
|
|
|
|
# Custom icon.
|
|
|
|
# Custom icon.
|
|
|
@ -423,7 +418,7 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
##########[ nodenv: node.js version from nodenv (https://github.com/nodenv/nodenv) ]##########
|
|
|
|
##########[ nodenv: node.js version from nodenv (https://github.com/nodenv/nodenv) ]##########
|
|
|
|
# Nodenv color.
|
|
|
|
# Nodenv color.
|
|
|
|
typeset -g POWERLEVEL9K_NODENV_FOREGROUND=2
|
|
|
|
typeset -g POWERLEVEL9K_NODENV_FOREGROUND=70
|
|
|
|
# Don't show node version if it's the same as global: $(nodenv version-name) == $(nodenv global).
|
|
|
|
# Don't show node version if it's the same as global: $(nodenv version-name) == $(nodenv global).
|
|
|
|
typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false
|
|
|
|
typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false
|
|
|
|
# Custom icon.
|
|
|
|
# Custom icon.
|
|
|
@ -431,19 +426,19 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
##############[ nvm: node.js version from nvm (https://github.com/nvm-sh/nvm) ]###############
|
|
|
|
##############[ nvm: node.js version from nvm (https://github.com/nvm-sh/nvm) ]###############
|
|
|
|
# Nvm color.
|
|
|
|
# Nvm color.
|
|
|
|
typeset -g POWERLEVEL9K_NVM_FOREGROUND=2
|
|
|
|
typeset -g POWERLEVEL9K_NVM_FOREGROUND=70
|
|
|
|
# Custom icon.
|
|
|
|
# Custom icon.
|
|
|
|
# typeset -g POWERLEVEL9K_NVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# typeset -g POWERLEVEL9K_NVM_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
|
|
############[ nodeenv: node.js environment (https://github.com/ekalinin/nodeenv) ]############
|
|
|
|
############[ nodeenv: node.js environment (https://github.com/ekalinin/nodeenv) ]############
|
|
|
|
# Nodeenv color.
|
|
|
|
# Nodeenv color.
|
|
|
|
typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=2
|
|
|
|
typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=70
|
|
|
|
# Custom icon.
|
|
|
|
# Custom icon.
|
|
|
|
# typeset -g POWERLEVEL9K_NODEENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# typeset -g POWERLEVEL9K_NODEENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
|
|
##############################[ node_version: node.js version ]###############################
|
|
|
|
##############################[ node_version: node.js version ]###############################
|
|
|
|
# Node version color.
|
|
|
|
# Node version color.
|
|
|
|
typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=2
|
|
|
|
typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=70
|
|
|
|
# Show node version only when in a directory tree containing package.json.
|
|
|
|
# Show node version only when in a directory tree containing package.json.
|
|
|
|
typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true
|
|
|
|
typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true
|
|
|
|
# Custom icon.
|
|
|
|
# Custom icon.
|
|
|
@ -471,7 +466,7 @@ fi
|
|
|
|
# typeset -g POWERLEVEL9K_KUBECONTEXT_PROD_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# typeset -g POWERLEVEL9K_KUBECONTEXT_PROD_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_FOREGROUND=2
|
|
|
|
# typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_FOREGROUND=2
|
|
|
|
# typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=13
|
|
|
|
typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=134
|
|
|
|
# typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
|
|
# Kubernetes context too long? You can shorten it by defining an expansion. The original
|
|
|
|
# Kubernetes context too long? You can shorten it by defining an expansion. The original
|
|
|
@ -488,7 +483,7 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
###############################[ public_ip: public IP address ]###############################
|
|
|
|
###############################[ public_ip: public IP address ]###############################
|
|
|
|
# Public IP color.
|
|
|
|
# Public IP color.
|
|
|
|
typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=144
|
|
|
|
typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=94
|
|
|
|
# Custom icon.
|
|
|
|
# Custom icon.
|
|
|
|
# typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
# typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
|
|
|
|
|
|
|
|
|
|
@ -499,7 +494,7 @@ fi
|
|
|
|
# Show battery in green when it's charging.
|
|
|
|
# Show battery in green when it's charging.
|
|
|
|
typeset -g POWERLEVEL9K_BATTERY_CHARGING_FOREGROUND=2
|
|
|
|
typeset -g POWERLEVEL9K_BATTERY_CHARGING_FOREGROUND=2
|
|
|
|
# Show battery in yellow when not connected to power supply.
|
|
|
|
# Show battery in yellow when not connected to power supply.
|
|
|
|
typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3
|
|
|
|
typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=178
|
|
|
|
# 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='▁▂▃▄▅▆▇'
|
|
|
|
typeset -g POWERLEVEL9K_BATTERY_STAGES='▁▂▃▄▅▆▇'
|
|
|
|
# Display battery pictogram without background.
|
|
|
|
# Display battery pictogram without background.
|
|
|
@ -523,15 +518,15 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
# Example of a user-defined prompt segment. Function prompt_example will be called on every
|
|
|
|
# Example of a user-defined prompt segment. Function prompt_example will be called on every
|
|
|
|
# prompt if `example` prompt segment is added to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or
|
|
|
|
# prompt if `example` prompt segment is added to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or
|
|
|
|
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS. It displays an icon and blue text greeting the user.
|
|
|
|
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS. It displays an icon and orange text greeting the user.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Type `p9k_prompt_segment -h` for documentation and a more sophisticated example.
|
|
|
|
# Type `p9k_prompt_segment -h` for documentation and a more sophisticated example.
|
|
|
|
function prompt_example() {
|
|
|
|
function prompt_example() {
|
|
|
|
p9k_prompt_segment -f 4 -i '⭐' -t 'hello, %n'
|
|
|
|
p9k_prompt_segment -f 208 -i '⭐' -t 'hello, %n'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# User-defined prompt segments can be customized the same way as built-in segments.
|
|
|
|
# User-defined prompt segments can be customized the same way as built-in segments.
|
|
|
|
typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=4
|
|
|
|
typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=208
|
|
|
|
typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='${P9K_VISUAL_IDENTIFIER}'
|
|
|
|
typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='${P9K_VISUAL_IDENTIFIER}'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|