From b42841802d1d80cb2125a0a1bd87a2006dfdbe58 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Tue, 22 Nov 2022 12:17:26 +0000 Subject: Use fzf-git.sh --- nix-conf/home/includes/zsh.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'nix-conf') diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index 76107a9..9dd4aa9 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -93,10 +93,6 @@ export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow -g "!{.git,node_modules}/*" 2> /dev/null' export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_ALT_C_COMMAND="rg --hidden --files --sort-files --null | xargs -0 dirname | sort -u" - if [ -d ~/fzf-git ]; then - source ~/fzf-git/functions.sh - source ~/fzf-git/key-binding.zsh - fi autopair-init enable-fzf-tab @@ -192,6 +188,16 @@ }; file = "zsh-edit.plugin.zsh"; } + { + name = "fzf-git.sh"; + src = fetchFromGitHub { + owner = "junegunn"; + repo = "fzf-git.sh"; + rev = "9190e1bf7273d85f435fa759a5c3b20e588e9f7e"; + sha256 = "2CGjk1oTXip+eAJMuOk/X3e2KTwfwzcKTcGToA2xPd4="; + }; + file = "fzf-git.sh"; + } ]; }; } -- cgit 1.4.1-2-gfad0