From ce01e0ea579ad1d5c698f778536ca08d80bb2074 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 16 Nov 2024 12:20:21 -0800 Subject: [PATCH] fix(home): Don't include position = "anywhere" abbrs --- modules/home/options/shellAbbrs/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/home/options/shellAbbrs/default.nix b/modules/home/options/shellAbbrs/default.nix index 1e5f7f2..d24e02c 100644 --- a/modules/home/options/shellAbbrs/default.nix +++ b/modules/home/options/shellAbbrs/default.nix @@ -55,7 +55,13 @@ let }; removeFishOnly = attrsets.filterAttrs ( - _: v: if (builtins.isAttrs v) then !((v ? regex) || (v ? setCursor) || (v ? function)) else true + _: v: + if (builtins.isAttrs v) then + !( + (v ? regex) || (v ? setCursor) || (v ? function) || ((v ? position) && (v.position == "anywhere")) + ) + else + true ); abbrToAlias = attrsets.mapAttrs (