home-profile: zsh style changes 2

This commit is contained in:
Mateusz Słodkowicz 2024-03-30 20:58:11 +01:00
parent 8870c0e7e7
commit b91142f643
Signed by: materus
SSH Key Fingerprint: SHA256:rzVduzTiiszuYfLPYD0SDZV+g8lxhpcRgpbOZA1X0Uo
1 changed files with 6 additions and 1 deletions

View File

@ -97,6 +97,7 @@
timewarrior # timewarrior tracking status (https://timewarrior.net/)
taskwarrior # taskwarrior task count (https://taskwarrior.org/)
# cpu_arch # CPU architecture
private
time # current time
# ip # ip address and bandwidth usage for a specified network interface
# public_ip # public IP address
@ -1575,7 +1576,11 @@
function prompt_example() {
p10k segment -f 2 -i '*' -t 'hello, %n'
}
function prompt_private() {
if [ $__MATERUS_HM_ZSH_PRIVATE = "1" ]; then
p10k segment -f 5 -t 'PRIVATE'
fi
}
# User-defined prompt segments may optionally provide an instant_prompt_* function. Its job
# is to generate the prompt segment for display in instant prompt. See
# https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.