From 4b20f9d13768fa5a8aecf7334d05e6cea8ddf971 Mon Sep 17 00:00:00 2001 From: Daniel Thoren Date: Mon, 13 Jun 2022 14:51:03 +0200 Subject: [PATCH] :art: add .local/bin to path (only if exists) --- .zshrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index a043716..20604fb 100644 --- a/.zshrc +++ b/.zshrc @@ -115,5 +115,8 @@ bindkey -v # make brew accessible eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" -# add lvim to path -export PATH=.local/bin:$PATH +# set PATH so it includes user's private ~/.local/bin if it exists +# lvim is installed to this directory (at least on ubuntu) +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" +fi