From 76d3317ef4f4d97d555e213b4914a23fcb101b1f Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 1 Jan 2022 00:01:25 +0100 Subject: [PATCH] Esclusa importazione plugin per CentOS. --- zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index b516e1a..5cf831c 100644 --- a/zshrc +++ b/zshrc @@ -40,6 +40,11 @@ fi # Plugins for plugin in `find $DOTFILES/zsh/plugins -type f -iname \*.plugin.zsh -print`; do + if [ -f /etc/redhat-release ]; then + if [ "${plugin}" != 'fzf.plugin.zsh' ]; then + source $plugin + fi + fi source $plugin done @@ -47,7 +52,7 @@ done export EDITOR="/usr/bin/vim" # FZF default options -if [ -x `which fzf` ]; then +if [ -x `which fzf 2>/dev/null` ]; then export FZF_DEFAULT_OPTS="--multi --no-mouse --ansi --color=dark" fi