diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-02-11 16:24:14 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-02-11 16:24:14 -0600 |
commit | 17fa2c0a74f0129c622f38879dac9f7d2e3a4aa0 (patch) | |
tree | 90f3bd4ddadaf982b0dfb8665ae04bf6982b3c8a /fzf/.config | |
parent | 63393e63d474b9197d484edaa2d82c02aa865aa1 (diff) |
feat: split `.zshrc` to individual files
split `$XDG_CONFIG_HOME/zsh/.zshrc` up into
`$XDG_CONFIG_HOME/zsh/.zshrc.d/*`. This allows for better management
and prioritization between different tool's env. Similar to what was
done to `.profile` in e712243 (feat: split `.profile` to individual
files, 2023-02-10).
Diffstat (limited to 'fzf/.config')
-rw-r--r-- | fzf/.config/zsh/.zshrc.d/50-fzf.zsh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fzf/.config/zsh/.zshrc.d/50-fzf.zsh b/fzf/.config/zsh/.zshrc.d/50-fzf.zsh new file mode 100644 index 0000000..c026139 --- /dev/null +++ b/fzf/.config/zsh/.zshrc.d/50-fzf.zsh @@ -0,0 +1,10 @@ +#!/bin/zsh +# vim: ft=sh + +_fzf_compgen_path() { + fd --hidden --follow --exclude ".git" . "$1" +} + +_fzf_compgen_dir() { + fd --type d --hidden --follow --exclude ".git" . "$1" +} |