This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a Powerlevel10k prompt segment that shows that value of $VAULT_ADDR if set. | |
function prompt_my_vault_addr() { | |
if [[ -n $VAULT_ADDR ]]; then | |
p10k segment -i '🔐' -f brightwhite -b blue -t "$VAULT_ADDR" | |
fi | |
} | |
# Add it to the right prompt. | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS+=my_vault_addr |