52f9238b16ddc8a97690b49c8b395e9fe1169b62
- Author
- Roey Darwish Dror <roey.ghost@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fzf: support for NixOS and Void Linux (#8618)
Diff
1diff --git a/plugins/fzf/fzf.plugin.zsh b/plugins/fzf/fzf.plugin.zsh
2index c8aefd7abdd6e0f7c191b3672bafe2d3f4293d86..53bdcbc97f00ffb26b502d18060d3d116973ac22 100644
3--- a/plugins/fzf/fzf.plugin.zsh
4+++ b/plugins/fzf/fzf.plugin.zsh
5@@ -10,6 +10,7 @@ function setup_using_base_dir() {
6 if [[ -z "${fzf_base}" ]]; then
7 fzfdirs=(
8 "${HOME}/.fzf"
9+ "${HOME}/.nix-profile/share/fzf"
10 "/usr/local/opt/fzf"
11 "/usr/share/fzf"
12 "/usr/local/share/examples/fzf"
13@@ -31,8 +32,8 @@ function setup_using_base_dir() {
14 fi
15
16 if [[ -d "${fzf_base}" ]]; then
17- # Fix fzf shell directory for Archlinux package
18- if [[ ! -d "${fzf_base}/shell" ]] && [[ -f /etc/arch-release ]]; then
19+ # Fix fzf shell directory for Arch Linux, NixOS or Void Linux packages
20+ if [[ ! -d "${fzf_base}/shell" ]]; then
21 fzf_shell="${fzf_base}"
22 else
23 fzf_shell="${fzf_base}/shell"