feat(zsh): move p10k to XDG

This commit is contained in:
Matej Janezic 2023-05-31 11:21:26 +02:00
parent a5aeb5e40d
commit b2b3082cf3
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
2 changed files with 1627 additions and 5 deletions

1622
zsh/.p10k.zsh Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@ export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
@ -71,8 +71,8 @@ export EDITOR=nvim
source "$ZDOTDIR/aliases.zsh"
source "$ZDOTDIR/functions.zsh"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# opam configuration
[[ ! -r /Users/janezicmatej/.opam/opam-init/init.zsh ]] || source /Users/janezicmatej/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh