From e5984a9cacf950a14392a32dd2d12d75da4371fd Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Mon, 7 Jun 2021 14:36:32 +1000 Subject: [PATCH] zsh: added fzf --- profiles/zsh.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/profiles/zsh.nix b/profiles/zsh.nix index 3873b45..fb3c241 100644 --- a/profiles/zsh.nix +++ b/profiles/zsh.nix @@ -15,14 +15,26 @@ export GPG_TTY="$(tty)" export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gpgconf --launch gpg-agent + if type rg &> /dev/null; then + export FZF_DEFAULT_COMMAND='rg --files' + export FZF_DEFAULT_OPTS='-m --height 50% --border' + fi ''; ohMyZsh = { enable = true; - plugins = [ "git" ]; + plugins = [ + "fzf" + "git" + ]; + theme = "powerlevel9k"; }; promptInit = "source ${pkgs.zsh-powerlevel9k}/share/zsh-powerlevel9k/powerlevel9k.zsh-theme"; }; + environment.systemPackages = with pkgs; [ + fzf + ]; + users.defaultUserShell = pkgs.zsh; # Set the default shell for all users }