From 12429c6d864e920094560e4f77d32472071aad53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 8 Sep 2024 18:21:07 +0200 Subject: [PATCH] Revert "fish: source vendor completions" This reverts commit 39a707bd15cc2b23baca5a8e1bb4209cc7f4d99d. --- modules/programs/fish.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/programs/fish.nix b/modules/programs/fish.nix index 1c667fefc..473d81600 100644 --- a/modules/programs/fish.nix +++ b/modules/programs/fish.nix @@ -439,12 +439,11 @@ in { # add completions generated by Home Manager to $fish_complete_path begin set -l joined (string join " " $fish_complete_path) - set -l prev_joined (string replace --regex "[^\s]*home-manager-path/share/fish/vendor_completions\.d" "" $joined) - set -l prev_joined (string replace --regex "[^\s]*generated_completions.*" "" $prev_joined) + set -l prev_joined (string replace --regex "[^\s]*generated_completions.*" "" $joined) set -l post_joined (string replace $prev_joined "" $joined) set -l prev (string split " " (string trim $prev_joined)) set -l post (string split " " (string trim $post_joined)) - set fish_complete_path $prev "${config.home.path}/share/fish/vendor_completions.d" "${config.xdg.dataHome}/fish/home-manager_generated_completions" $post + set fish_complete_path $prev "${config.xdg.dataHome}/fish/home-manager_generated_completions" $post end '';