refactor fzf a bit
This commit is contained in:
parent
02e404da77
commit
22f3630c57
2 changed files with 11 additions and 6 deletions
|
@ -9,7 +9,6 @@
|
||||||
bat
|
bat
|
||||||
fd
|
fd
|
||||||
file
|
file
|
||||||
fzf
|
|
||||||
git
|
git
|
||||||
gnupg
|
gnupg
|
||||||
htop
|
htop
|
||||||
|
@ -69,8 +68,6 @@
|
||||||
ll = "ls -lah";
|
ll = "ls -lah";
|
||||||
lt = "ls --tree";
|
lt = "ls --tree";
|
||||||
vim = "nvim";
|
vim = "nvim";
|
||||||
vf = "$EDITOR $(fzf)";
|
|
||||||
vff = "$EDITOR $(ls|fzf)";
|
|
||||||
mutt = "neomutt";
|
mutt = "neomutt";
|
||||||
grep = "grep --color=auto";
|
grep = "grep --color=auto";
|
||||||
nix-build="${pkgs.nix-output-monitor}/bin/nom-build";
|
nix-build="${pkgs.nix-output-monitor}/bin/nom-build";
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
{ lib, config, ... }: {
|
{ lib, config, pkgs, ... }: {
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
systemPackages = [ pkgs.fzf ];
|
||||||
|
shellAliases = {
|
||||||
|
vf = "$EDITOR $(fzf)";
|
||||||
|
vff = "$EDITOR $(ls|fzf)";
|
||||||
|
};
|
||||||
|
};
|
||||||
# integrate fzf into shell, >23.05 only
|
# integrate fzf into shell, >23.05 only
|
||||||
programs =
|
programs = with lib;
|
||||||
if (lib.toInt (lib.elemAt (lib.splitVersion config.system.nixos.release) 0) >= 23) then {
|
if (toInt (elemAt (splitVersion config.system.nixos.release) 0) >= 23) then {
|
||||||
fzf = {
|
fzf = {
|
||||||
keybindings = true;
|
keybindings = true;
|
||||||
fuzzyCompletion = true;
|
fuzzyCompletion = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue