Lehmanator / nix-configs

Personal Nix / NixOS configs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`fzf`: Create shell snippets

Lehmanator opened this issue · comments

Many found in fzf repo: junegunn/fzf

Implementation

  • pkgs.writeShellApplication

Example:

fzf-ps = pkgs.writeShellApplication {
  name = "fzf-ps";
  runtimeInputs = [ 
    pkgs.fzf 
    pkgs.ps
   ];
  text = ''
    ps | fzf 
    #curl -s 'https://nixos.org' | w3m -dump -T text/html
  '';
}