commit 7a7c57af667122f4fe9ad647bcaf2d27df0d5641
parent 1d9703014b4bdd68b7edd20fa5addab3e1703b22
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date: Mon, 20 Nov 2023 18:32:37 +0100
functions: fix path
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell/functions b/shell/functions
@@ -84,7 +84,7 @@ if command -v virtualenv &> /dev/null; then
}
fi
# fzf-reliant functions
-if [ -d ~/.config/fzf ]; then
+if command -v fzf >/dev/null 2>&1; then
{ [ -f ~/.config/dark-theme ] && export BAT_THEME='1337'; } || export BAT_THEME='GitHub'
export FZF_DEFAULT_OPTS="--preview-window right:100:hidden:wrap --bind '?:toggle-preview' --preview='(bat --style=numbers --theme=$BAT_THEME --color=always {} || cat {}) 2>/dev/null | head -500'"
export FZF_DEFAULT_COMMAND="ag -l -g \"\""