This is a collection of custom segments for powerlevel10k.
- doctl - The official command line interface for the DigitalOcean API
- POWERLEVEL9K_DOCTL_HIDE_DEFAULT (default: true)
- Type: boolean
- Description: Don't show segment when switched to the default context
- POWERLEVEL9K_DOCTL_HIDE_DEFAULT (default: true)
# Clone the repostiroy to the home directory
git clone https://github.com/lexuzieel/p10k-addons.git ~/.p10k-addons
# .zshrc
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Load p10k prompt addons
[[ -d ~/.p10k-addons ]] && source ~/.p10k-addons/addons/*.zsh
After sourcing addons you can add new prompt elements:
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
... doctl
)
To update the addons to the latest version, pull latest changes into the local repository:
git -C ~/.p10k-addons pull