From 31b6995b6d7e93e9502c2739d1ccf62ea28110aa Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 20 Aug 2018 19:31:00 -0500 Subject: [PATCH] don't add .local/bin to the path multiple times --- env/.bash_env | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/env/.bash_env b/env/.bash_env index 1b6a0a4..3c0a390 100644 --- a/env/.bash_env +++ b/env/.bash_env @@ -1,6 +1,8 @@ unset BASH_ENV -export PATH="${HOME}/.local/bin:$PATH" +if [[ :$PATH: != *:"${HOME}/.local/bin":* ]] ; then + export PATH="${HOME}/.local/bin:$PATH" +fi nac () { local txtbld=$(tput bold)