Support fzf with home-manager

Because (to my knowledge) home-manager doesn't support fish-shell, I need to
retain some fzf-specific configuration in my fish/config.fish file.
This commit is contained in:
William Carroll 2020-03-05 15:01:23 +00:00
parent cb3d1da6c9
commit f645b6dadf
2 changed files with 5 additions and 4 deletions

View file

@ -57,6 +57,11 @@
}; };
}; };
programs.fzf = rec {
defaultCommand = "fd --hidden --follow --exclude '.git'";
fileWidgetCommand = defaultCommand;
};
############################################################################## ##############################################################################
# Services # Services
############################################################################## ##############################################################################

View file

@ -29,10 +29,6 @@ export ALTERNATE_EDITOR=nvim
# Rust integration. Keep here so programs like Emacs can read this value. # Rust integration. Keep here so programs like Emacs can read this value.
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
# Application configuration
export FZF_DEFAULT_COMMAND='fd --hidden --follow --exclude ".git"'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# This fixes nixpkgs that rely on glibc-2.27, which allegedly breaks locale # This fixes nixpkgs that rely on glibc-2.27, which allegedly breaks locale
# issues. # issues.
# See this thread for more details: https://github.com/NixOS/nixpkgs/issues/8398 # See this thread for more details: https://github.com/NixOS/nixpkgs/issues/8398