commit 97b126b260ca022bae0fedc5c9a6d0b6db1bf7e4 parent 5752cb94bc2303abbb8fcaa51f75eebe452f87c8 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Tue, 29 May 2018 16:34:11 +0200 Fixed my scripts being added to PATH multiple times when reloading Diffstat:
M | commonprofile | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/commonprofile b/commonprofile @@ -173,8 +173,10 @@ linkdir() { # Original path: # PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin -# Include my scripts in PATH # -export PATH=/Users/alex/.bin:$PATH +# Include my scripts in PATH (conditionally) # +if [[ $PATH != *"/Users/alex/.bin"* ]]; then + export PATH=/Users/alex/.bin:$PATH +fi #####################