all repos — nixfiles @ 96684025aa667ac029c61eed47388a6cdfc16463

System and user configuration, managed by nix and home-manager

zsh: improve completions with fzf-zsh-completions
Alan Pearce alan@alanpearce.eu
Fri, 02 Apr 2021 15:45:16 +0200
commit

96684025aa667ac029c61eed47388a6cdfc16463

parent

5b61513bbf9d9343da90ce96c8eb1204ecd21e70

1 files changed, 11 insertions(+), 0 deletions(-)

jump to
M user/settings/zsh.nixuser/settings/zsh.nix
@@ -93,6 +93,16 @@ # date = 2017-07-19T21:59:49+09:00;           sha256 = "08bjm1dd2mpv8rk8x6yvm6gj490rgimmiq7ln4jr5hik2k3mm82r";
         };
       }
+      {
+        name = "fzf-zsh-completions";
+        src = pkgs.fetchFromGitHub {
+          owner = "chitoku-k";
+          repo = "fzf-zsh-completions";
+          rev = "19f92960538f0080d040c8ed774d465b9b46e1d1";
+          # date = 2021-04-02T17:42:59+09:00;
+          sha256 = "0qmm0xm1aiy3fnn2vib26z10cfy707yqg0vg5236r7978glswdlg";
+        };
+      }
     ]);
 
     shellAliases = {
@@ -224,6 +234,7 @@ fc -l -m "$1*" -10000 | cut -d' ' -f4- | sort | uniq -c | sort -g | tail -n100 | less       }
 
       source ${pkgs.fzf}/share/fzf/key-bindings.zsh
+      source ${pkgs.fzf}/share/fzf/completion.zsh
 
     '' + builtins.readFile ../zsh/zshrc;
   };