commit ec19b70eafe084c3d8fcc8b496afc4317d9ec8f1
parent d064217c7c07cc341e852b0e56f9d7574bc9ceff
Author: Alex Balgavy <alex@balgavy.eu>
Date: Wed, 16 Dec 2020 16:50:13 +0100
shell: fix fzf aliases not loading
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell/functions b/shell/functions
@@ -83,7 +83,7 @@ if command -v virtualenv &> /dev/null; then
}
fi
# fzf-reliant functions
-if [ -f ~/.fzf.zsh ] || [ -f ~/.fzf.bash ]; then
+if [ -d ~/.config/fzf ]; then
export FZF_DEFAULT_OPTS="--preview-window right:100:hidden:wrap --bind '?:toggle-preview' --preview='(bat --style=numbers --color=always {} || cat {}) 2>/dev/null | head -500'"
export FZF_DEFAULT_COMMAND="ag -l -g \"\""
# script edit