diff options
author | William Carroll <wpcarro@gmail.com> | 2020-03-05T15·01+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-03-06T10·15+0000 |
commit | f645b6dadf1d0d8cc9dbcf61c9e93a222487e1c7 (patch) | |
tree | 5daa75974be125f293d4d018b6fb8bb98bfc0a46 /configs | |
parent | cb3d1da6c94ce75e6b37dfa4d5b478feef5df272 (diff) |
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.
Diffstat (limited to 'configs')
-rw-r--r-- | configs/shared/.config/nixpkgs/home.nix | 5 | ||||
-rw-r--r-- | configs/shared/.profile | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/configs/shared/.config/nixpkgs/home.nix b/configs/shared/.config/nixpkgs/home.nix index 2c6266c7a239..63bdf047b3f9 100644 --- a/configs/shared/.config/nixpkgs/home.nix +++ b/configs/shared/.config/nixpkgs/home.nix @@ -57,6 +57,11 @@ }; }; + programs.fzf = rec { + defaultCommand = "fd --hidden --follow --exclude '.git'"; + fileWidgetCommand = defaultCommand; + }; + ############################################################################## # Services ############################################################################## diff --git a/configs/shared/.profile b/configs/shared/.profile index b442aea27936..63da222d024c 100644 --- a/configs/shared/.profile +++ b/configs/shared/.profile @@ -29,10 +29,6 @@ export ALTERNATE_EDITOR=nvim # Rust integration. Keep here so programs like Emacs can read this value. 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 # issues. # See this thread for more details: https://github.com/NixOS/nixpkgs/issues/8398 |