From 497f23c1159aff3435efea7c589537899cf04004 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sun, 23 Jan 2022 16:38:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BA=D0=B0=D0=B7=20=D0=BE=D1=82?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=D0=B0=20=D0=B2=20=D0=BD=D0=B5?= =?UTF-8?q?=D1=81=D1=83=D1=89=D0=B5=D1=81=D1=82=D0=B2=D1=83=D1=8E=D1=89?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=BA=D0=B0=D1=82=D0=B0=D0=BB=D0=BE=D0=B3=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 15-env.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/15-env.zsh b/15-env.zsh index 2125a92..4ac7dc7 100644 --- a/15-env.zsh +++ b/15-env.zsh @@ -1,6 +1,7 @@ # PATH - -PATH="$(find $HOME/.gem/ruby -maxdepth 2 -name bin -type d | sort -r | tr '\n' ':')$PATH" +if [[ -d "$HOME/.gem/ruby" ]]; then + PATH="$(find $HOME/.gem/ruby -maxdepth 2 -name bin -type d | sort -r | tr '\n' ':')$PATH" +fi for P in \ "$HOME/bin" \