From d64b346014e0f7dc64fb1991e2ba49073b4cbc52 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Mon, 17 Jul 2023 22:25:49 +0200 Subject: [PATCH] Back to p10k. --- {_unused => _cli}/p10k.zsh | 0 _cli/zsh/.zshrc | 11 +++++++---- {_cli => _unused}/starship.toml | 0 install.sh | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) rename {_unused => _cli}/p10k.zsh (100%) rename {_cli => _unused}/starship.toml (100%) diff --git a/_unused/p10k.zsh b/_cli/p10k.zsh similarity index 100% rename from _unused/p10k.zsh rename to _cli/p10k.zsh diff --git a/_cli/zsh/.zshrc b/_cli/zsh/.zshrc index d343b6b..86ad478 100644 --- a/_cli/zsh/.zshrc +++ b/_cli/zsh/.zshrc @@ -17,9 +17,6 @@ setopt HIST_REDUCE_BLANKS setopt SHARE_HISTORY setopt INC_APPEND_HISTORY -# if [[ -z $DISPLAY ]]; then -# export PATH=~/.local/bin:$PATH -# fi path=(~/.local/bin "$path[@]") # source configuration @@ -33,10 +30,16 @@ source $ZDOTDIR/fzf.zsh source $XDG_DATA_HOME/repos/zsh_modules/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh source $XDG_DATA_HOME/repos/zsh_modules/wd/wd.plugin.zsh export WD_CONFIG=$XDG_CONFIG_HOME/wd_list + +# set path fpath=($XDG_DATA_HOME/repos/zsh_modules/wd $fpath) # theme and colors -eval "$(starship init zsh)" +source $XDG_CONFIG_HOME/p10k.zsh +source $XDG_DATA_HOME/repos/zsh_modules/powerlevel10k/powerlevel10k.zsh-theme +if [[ -r "$XDG_CACHE_HOME/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then + source "$XDG_CACHE_HOME/p10k-instant-prompt-${(%):-%n}.zsh" +fi if [[ $(command -v vivid) ]]; then export LS_COLORS=$(vivid generate molokai) else diff --git a/_cli/starship.toml b/_unused/starship.toml similarity index 100% rename from _cli/starship.toml rename to _unused/starship.toml diff --git a/install.sh b/install.sh index 9df922e..41b563d 100644 --- a/install.sh +++ b/install.sh @@ -25,7 +25,7 @@ ln -sf $XDG_DATA_HOME/repos/AstroNvim $XDG_CONFIG_HOME/nvim # zsh modules mkdir -p $XDG_DATA_HOME/repos/zsh_modules rm -rf $XDG_DATA_HOME/repos/zsh_modules/* -for module in mfaerevaag/wd zdharma-continuum/fast-syntax-highlighting; do +for module in mfaerevaag/wd romkatv/powerlevel10k zdharma-continuum/fast-syntax-highlighting; do git clone https://github.com/${module} $XDG_DATA_HOME/repos/zsh_modules/${module#*/} done