aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fzf/.config/zsh/.zshrc.d/90-fzf.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'fzf/.config/zsh/.zshrc.d/90-fzf.zsh')
-rw-r--r--fzf/.config/zsh/.zshrc.d/90-fzf.zsh21
1 files changed, 21 insertions, 0 deletions
diff --git a/fzf/.config/zsh/.zshrc.d/90-fzf.zsh b/fzf/.config/zsh/.zshrc.d/90-fzf.zsh
new file mode 100644
index 0000000..756a09c
--- /dev/null
+++ b/fzf/.config/zsh/.zshrc.d/90-fzf.zsh
@@ -0,0 +1,21 @@
+#!/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"
+}
+
+if [ -r "/usr/share/fzf/completion.zsh" ]; then
+ source /usr/share/fzf/completion.zsh
+fi
+
+if [ -n "$BASE16_THEME" ] && [ -n "$BASE16_SHELL_ENABLE_VARS" ]; then
+ export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS
+--color=bg+:$BASE16_COLOR_01_HEX,bg:$BASE16_COLOR_00_HEX,spinner:$BASE16_COLOR_0C_HEX,hl:$BASE16_COLOR_0D_HEX
+--color=fg:$BASE16_COLOR_04_HEX,header:$BASE16_COLOR_0D_HEX,info:$BASE16_COLOR_0A_HEX,pointer:$BASE16_COLOR_0C_HEX
+--color=marker:$BASE16_COLOR_0C_HEX,fg+:$BASE16_COLOR_06_HEX,prompt:$BASE16_COLOR_0A_HEX,hl+:$BASE16_COLOR_0D_HEX"
+fi