nix-config/modules/basic-tools/fzf.nix

19 lines
427 B
Nix
Raw Normal View History

2023-01-24 14:27:50 +01:00
{ lib, config, pkgs, ... }: {
environment = {
systemPackages = [ pkgs.fzf ];
shellAliases = {
vf = "$EDITOR $(fzf)";
vff = "$EDITOR $(ls|fzf)";
};
};
2023-01-22 23:07:29 +01:00
# integrate fzf into shell, >23.05 only
2023-01-24 14:27:50 +01:00
programs = with lib;
if (toInt (elemAt (splitVersion config.system.nixos.release) 0) >= 23) then {
2023-01-22 23:07:29 +01:00
fzf = {
keybindings = true;
fuzzyCompletion = true;
};
} else { };
}