From 027eba011c1f8d057154f6090cec0f15c03596e9 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 22 Apr 2025 12:18:13 -0400 Subject: [PATCH] remove zsh plugin fetch in favor of nix --- .chezmoiexternal.toml | 4 ---- dot_config/zsh/dot_zshrc | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.chezmoiexternal.toml b/.chezmoiexternal.toml index ba94f16..95bb293 100644 --- a/.chezmoiexternal.toml +++ b/.chezmoiexternal.toml @@ -14,7 +14,3 @@ refreshPeriod = "168h" type = "git-repo" url = "https://github.com/Piraty/xxtools.git" refreshPeriod = "168h" - -[".local/share/zsh-history-substring-search"] -type = "archive" -url = "https://github.com/zsh-users/zsh-history-substring-search/archive/refs/tags/v1.1.0.tar.gz" diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 766acbb..127b386 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -117,6 +117,8 @@ for plugin in zsh-syntax-highlighting zsh-history-substring-search zsh-autosugge possible_locations=( # Standard location "/usr/share/zsh/plugins/$plugin/$plugin.zsh" + # Nix + "/nix/var/nix/profiles/default/share/$plugin/$plugin.zsh" # Direct in /usr/share "/usr/share/$plugin/$plugin.zsh" # Home directory locations @@ -127,8 +129,6 @@ for plugin in zsh-syntax-highlighting zsh-history-substring-search zsh-autosugge "$HOME/.oh-my-zsh/custom/plugins/$plugin/$plugin.zsh" # Homebrew location (for macOS users) "/usr/local/share/$plugin/$plugin.zsh" - # Specific path for history-substring-search with version number - "$HOME/.local/share/zsh-history-substring-search/zsh-history-substring-search-*/zsh-history-substring-search.zsh" ) # Try each location until we find one that exists for location in "${possible_locations[@]}"; do