feat: added zmx to p10k
This commit is contained in:
@@ -37,6 +37,12 @@
|
|||||||
# prompt_char # prompt symbol
|
# prompt_char # prompt symbol
|
||||||
)
|
)
|
||||||
|
|
||||||
|
function prompt_my_zmx_session() {
|
||||||
|
if [[ -n $ZMX_SESSION ]]; then
|
||||||
|
p10k segment -b '%k' -f '%f' -t "[$ZMX_SESSION]"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# The list of segments shown on the right. Fill it with less important segments.
|
# The list of segments shown on the right. Fill it with less important segments.
|
||||||
# Right prompt on the last prompt line (where you are typing your commands) gets
|
# Right prompt on the last prompt line (where you are typing your commands) gets
|
||||||
# automatically hidden when the input line reaches it. Right prompt above the
|
# automatically hidden when the input line reaches it. Right prompt above the
|
||||||
@@ -110,6 +116,7 @@
|
|||||||
# battery # internal battery
|
# battery # internal battery
|
||||||
# wifi # wifi speed
|
# wifi # wifi speed
|
||||||
# example # example user-defined segment (see prompt_example function below)
|
# example # example user-defined segment (see prompt_example function below)
|
||||||
|
my_zmx_session
|
||||||
)
|
)
|
||||||
|
|
||||||
# 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user