From 5fa69f6396ce6b9fd6799f4d6254537778fb0f71 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Fri, 31 Dec 2021 23:57:45 +0100 Subject: [PATCH] Resa condizionale export variabile fzf. --- zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 4c419f3..b516e1a 100644 --- a/zshrc +++ b/zshrc @@ -47,7 +47,9 @@ done export EDITOR="/usr/bin/vim" # FZF default options -export FZF_DEFAULT_OPTS="--multi --no-mouse --ansi --color=dark" +if [ -x `which fzf` ]; then + export FZF_DEFAULT_OPTS="--multi --no-mouse --ansi --color=dark" +fi # Loading rvm if exists [ -f /etc/profile.d/rvm.sh ] && source /etc/profile.d/rvm.sh