From 1ec8a15b3be559975681527ab011c7f9fa294d6c Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 22 Nov 2019 13:42:13 +0100 Subject: [PATCH] check properly --- .zprofile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.zprofile b/.zprofile index e7cf827..3cf7c67 100644 --- a/.zprofile +++ b/.zprofile @@ -31,9 +31,12 @@ if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi +# set PATH so it includes user's .cargo/bin +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.cargo/bin:$PATH" +fi + # autoloads if [ -f "$HOME/.autoload" ] ; then . ~/.aliases fi - -export PATH="$HOME/.cargo/bin:$PATH"