From 11e8f4e7147c53f626488bcecaea6abdc555252e Mon Sep 17 00:00:00 2001 From: ucpr Date: Sun, 10 Mar 2024 13:20:31 +0900 Subject: [PATCH] chore: tmp --- sheldon/plugins.toml | 6 ++++++ zsh/.zshrc | 22 ++++++++++++---------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/sheldon/plugins.toml b/sheldon/plugins.toml index 01d6153..80ffcc9 100644 --- a/sheldon/plugins.toml +++ b/sheldon/plugins.toml @@ -21,22 +21,28 @@ apply = ["source"] [plugins.fast-syntax-highlighting] github = "zdharma-continuum/fast-syntax-highlighting" +apply = ["source"] [plugins.zsh-completions] github = "zsh-users/zsh-completions" +apply = ["source"] [plugins.zsh-autosuggestions] github = "zsh-users/zsh-autosuggestions" +apply = ["source"] [plugins.autopair] github = "hlissner/zsh-autopair" +apply = ["source"] [plugins.zsh-z] github = "agkozak/zsh-z" +apply = ["source"] [plugins.dotfiles-defers] local = "~/.config/zsh/plugins" use = ["*_lazy.zsh"] +apply = ["source"] #[plugins.dotfiles-sync] #local = "~/.config/zsh/plugins" diff --git a/zsh/.zshrc b/zsh/.zshrc index 3561058..3153fa0 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -24,14 +24,16 @@ export XDG_CACHE_HOME="$HOME/.cache" export XDG_CONFIG_HOME="$HOME/.config" # sheldon settings -eval "$(sheldon source)" +# eval "$(sheldon source)" -#cache_dir=${XDG_CACHE_HOME:-$HOME/.cache} -#sheldon_cache="$cache_dir/sheldon.zsh" -#sheldon_toml="$HOME/.config/sheldon/plugins.toml" -#if [[ ! -r "$sheldon_cache" || "$sheldon_toml" -nt "$sheldon_cache" ]]; then -# mkdir -p $cache_dir -# sheldon source > $sheldon_cache -#fi -#source "$sheldon_cache" -#unset cache_dir sheldon_cache sheldon_toml +cache_dir=${XDG_CACHE_HOME:-$HOME/.cache} +sheldon_cache="$cache_dir/sheldon.zsh" +sheldon_toml="$HOME/.config/sheldon/plugins.toml" +if [[ ! -r "$sheldon_cache" || "$sheldon_toml" -nt "$sheldon_cache" ]]; then + mkdir -p $cache_dir + sheldon source > $sheldon_cache +fi +source "$sheldon_cache" +unset cache_dir sheldon_cache sheldon_toml + +source $XDG_CONFIG_HOME/zsh/plugins/fzf_lazy.zsh -- knotmirror 0.0.1