From 2e804af3b1868776a041bdd991f081824b401957 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Tue, 28 Jun 2022 13:52:51 +0200 Subject: [PATCH] Back to p10k, once again. --- starship.toml => _unused/starship.toml | 0 zsh/.zshrc | 8 ++++++-- {_unused => zsh}/p10k.zsh | 0 3 files changed, 6 insertions(+), 2 deletions(-) rename starship.toml => _unused/starship.toml (100%) rename {_unused => zsh}/p10k.zsh (100%) diff --git a/starship.toml b/_unused/starship.toml similarity index 100% rename from starship.toml rename to _unused/starship.toml diff --git a/zsh/.zshrc b/zsh/.zshrc index c0d0db2..25fe662 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -29,8 +29,12 @@ source $XDG_DATA_HOME/repos/zsh_modules/wd/wd.plugin.zsh export WD_CONFIG=$XDG_CONFIG_HOME/wd_list fpath=($XDG_DATA_HOME/repos/zsh_modules/wd $fpath) -# # theme -[ $(command -v starship) ] && eval $(starship init zsh) +# theme +source $ZDOTDIR/p10k.zsh +source $XDG_DATA_HOME/repos/zsh_modules/powerlevel10k/powerlevel10k.zsh-theme +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 # quick note functionality if [ -f ~/.note ]; then diff --git a/_unused/p10k.zsh b/zsh/p10k.zsh similarity index 100% rename from _unused/p10k.zsh rename to zsh/p10k.zsh