zsh/45-prompt.zsh

13 lines
511 B
Bash
Raw Normal View History

if is-at-least 5.3; then
2021-12-06 21:48:22 +00:00
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
2018-11-18 15:35:28 +00:00
2021-12-06 21:48:22 +00:00
if [[ ! -f "${ZCOMET_DIR}/prompt/powerlevel10k/powerlevel10k.zsh-theme" ]]; then
command git clone --depth=1 https://github.com/romkatv/powerlevel10k.git "${ZCOMET_DIR}/prompt/powerlevel10k"
fi
2021-12-06 21:48:22 +00:00
source "${ZCOMET_DIR}/prompt/powerlevel10k/powerlevel10k.zsh-theme"
else
2021-12-06 21:48:22 +00:00
zcomet load agkozak/agkozak-zsh-prompt
fi