diff --git a/home-leo.nix b/home-leo.nix index 2d94d0f..0ebb375 100644 --- a/home-leo.nix +++ b/home-leo.nix @@ -225,6 +225,18 @@ in { ''; }; + ".local/bin/fuzzypassage" = { + executable = true; + text = '' + PREFIX="''${PASSAGE_DIR:-$HOME/.passage/store}" + FZF_DEFAULT_OPTS="" + name="$(find "$PREFIX" -type f -name '*.age' | \ + sed -e "s|$PREFIX/||" -e 's|\.age$||' | \ + fzf --height 40% --reverse --no-multi)" + passage "''${@}" "$name" + ''; + }; + ".local/bin/battery.sh" = { source = bin/battery.sh; executable = true;