aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fzf/.config
diff options
context:
space:
mode:
Diffstat (limited to 'fzf/.config')
-rw-r--r--fzf/.config/zsh/.zshrc.d/50-fzf.zsh14
-rw-r--r--fzf/.config/zsh/.zshrc.d/90-fzf.zsh21
2 files changed, 21 insertions, 14 deletions
diff --git a/fzf/.config/zsh/.zshrc.d/50-fzf.zsh b/fzf/.config/zsh/.zshrc.d/50-fzf.zsh
deleted file mode 100644
index 82e24ab..0000000
--- a/fzf/.config/zsh/.zshrc.d/50-fzf.zsh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/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
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