Compare commits
5 Commits
1d347f9551
...
d9b02ce0f5
| Author | SHA1 | Date |
|---|---|---|
|
|
d9b02ce0f5 | |
|
|
b97926675a | |
|
|
3d2c72244d | |
|
|
447d0b2e68 | |
|
|
b336fa098a |
|
|
@ -999,6 +999,9 @@
|
||||||
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
|
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
|
||||||
# If set to false, hide python version if it's equal to "system".
|
# If set to false, hide python version if it's equal to "system".
|
||||||
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
|
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
|
||||||
|
# Show pyenv only when the command you are typing matches one of these strings.
|
||||||
|
# Tip: You might want to enable POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW above.
|
||||||
|
# typeset -g POWERLEVEL9K_PYENV_SHOW_ON_COMMAND='py*|pip*|poetry|virtualenv'
|
||||||
|
|
||||||
# Pyenv segment format. The following parameters are available within the expansion.
|
# Pyenv segment format. The following parameters are available within the expansion.
|
||||||
#
|
#
|
||||||
|
|
@ -1010,7 +1013,7 @@
|
||||||
# 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or
|
# 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or
|
||||||
# starts with "$P9K_PYENV_PYTHON_VERSION/".
|
# starts with "$P9K_PYENV_PYTHON_VERSION/".
|
||||||
# 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION".
|
# 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION".
|
||||||
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+ $P9K_PYENV_PYTHON_VERSION}'
|
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+$P9K_PYENV_PYTHON_VERSION}'
|
||||||
|
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
# typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
|
||||||
|
|
@ -974,6 +974,9 @@
|
||||||
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
|
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
|
||||||
# If set to false, hide python version if it's equal to "system".
|
# If set to false, hide python version if it's equal to "system".
|
||||||
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
|
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
|
||||||
|
# Show pyenv only when the command you are typing matches one of these strings.
|
||||||
|
# Tip: You might want to enable POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW above.
|
||||||
|
# typeset -g POWERLEVEL9K_PYENV_SHOW_ON_COMMAND='py*|pip*|poetry|virtualenv'
|
||||||
|
|
||||||
# Pyenv segment format. The following parameters are available within the expansion.
|
# Pyenv segment format. The following parameters are available within the expansion.
|
||||||
#
|
#
|
||||||
|
|
@ -985,7 +988,7 @@
|
||||||
# 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or
|
# 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or
|
||||||
# starts with "$P9K_PYENV_PYTHON_VERSION/".
|
# starts with "$P9K_PYENV_PYTHON_VERSION/".
|
||||||
# 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION".
|
# 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION".
|
||||||
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+ $P9K_PYENV_PYTHON_VERSION}'
|
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+$P9K_PYENV_PYTHON_VERSION}'
|
||||||
|
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
# typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
|
||||||
|
|
@ -974,6 +974,9 @@
|
||||||
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
|
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
|
||||||
# If set to false, hide python version if it's equal to "system".
|
# If set to false, hide python version if it's equal to "system".
|
||||||
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
|
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
|
||||||
|
# Show pyenv only when the command you are typing matches one of these strings.
|
||||||
|
# Tip: You might want to enable POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW above.
|
||||||
|
# typeset -g POWERLEVEL9K_PYENV_SHOW_ON_COMMAND='py*|pip*|poetry|virtualenv'
|
||||||
|
|
||||||
# Pyenv segment format. The following parameters are available within the expansion.
|
# Pyenv segment format. The following parameters are available within the expansion.
|
||||||
#
|
#
|
||||||
|
|
@ -985,7 +988,7 @@
|
||||||
# 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or
|
# 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or
|
||||||
# starts with "$P9K_PYENV_PYTHON_VERSION/".
|
# starts with "$P9K_PYENV_PYTHON_VERSION/".
|
||||||
# 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION".
|
# 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION".
|
||||||
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+ $P9K_PYENV_PYTHON_VERSION}'
|
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+$P9K_PYENV_PYTHON_VERSION}'
|
||||||
|
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
# typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
|
||||||
|
|
@ -1049,6 +1049,9 @@
|
||||||
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
|
typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false
|
||||||
# If set to false, hide python version if it's equal to "system".
|
# If set to false, hide python version if it's equal to "system".
|
||||||
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
|
typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true
|
||||||
|
# Show pyenv only when the command you are typing matches one of these strings.
|
||||||
|
# Tip: You might want to enable POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW above.
|
||||||
|
# typeset -g POWERLEVEL9K_PYENV_SHOW_ON_COMMAND='py*|pip*|poetry|virtualenv'
|
||||||
|
|
||||||
# Pyenv segment format. The following parameters are available within the expansion.
|
# Pyenv segment format. The following parameters are available within the expansion.
|
||||||
#
|
#
|
||||||
|
|
@ -1060,7 +1063,7 @@
|
||||||
# 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or
|
# 1. Display just "$P9K_CONTENT" if it's equal to "$P9K_PYENV_PYTHON_VERSION" or
|
||||||
# starts with "$P9K_PYENV_PYTHON_VERSION/".
|
# starts with "$P9K_PYENV_PYTHON_VERSION/".
|
||||||
# 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION".
|
# 2. Otherwise display "$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION".
|
||||||
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+ $P9K_PYENV_PYTHON_VERSION}'
|
typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+$P9K_PYENV_PYTHON_VERSION}'
|
||||||
|
|
||||||
# Custom icon.
|
# Custom icon.
|
||||||
# typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
# typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||||
|
|
|
||||||
|
|
@ -3527,7 +3527,9 @@ _p9k_prompt_time_compute() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_p9k_prompt_time_async() {
|
_p9k_prompt_time_async() {
|
||||||
sleep 1 || true
|
zmodload zsh/mathfunc zsh/zselect || return
|
||||||
|
local -F t=_POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC
|
||||||
|
zselect -t $((int(ceil(100 * (t - EPOCHREALTIME % t))))) || true
|
||||||
}
|
}
|
||||||
|
|
||||||
_p9k_prompt_time_sync() {
|
_p9k_prompt_time_sync() {
|
||||||
|
|
@ -7809,8 +7811,13 @@ _p9k_init_params() {
|
||||||
# commands will contain the start times of their commands as opposed to the default
|
# commands will contain the start times of their commands as opposed to the default
|
||||||
# behavior where they contain the end times of their preceding commands.
|
# behavior where they contain the end times of their preceding commands.
|
||||||
_p9k_declare -b POWERLEVEL9K_TIME_UPDATE_ON_COMMAND 0
|
_p9k_declare -b POWERLEVEL9K_TIME_UPDATE_ON_COMMAND 0
|
||||||
# If set to true, time will update every second.
|
# If set to true, time will update every
|
||||||
|
# POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC seconds.
|
||||||
_p9k_declare -b POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME 0
|
_p9k_declare -b POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME 0
|
||||||
|
_p9k_declare -F POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC 1
|
||||||
|
if (( _POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC <= 0 )); then
|
||||||
|
_POWERLEVEL9K_EXPERIMENTAL_TIME_REALTIME_INTERVAL_SEC=1
|
||||||
|
fi
|
||||||
|
|
||||||
_p9k_declare -b POWERLEVEL9K_NIX_SHELL_INFER_FROM_PATH 0
|
_p9k_declare -b POWERLEVEL9K_NIX_SHELL_INFER_FROM_PATH 0
|
||||||
typeset -g _p9k_nix_shell_cond='${IN_NIX_SHELL:#0}'
|
typeset -g _p9k_nix_shell_cond='${IN_NIX_SHELL:#0}'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue