From 0ccd110fdaf174033668beb512b0d3dae3a788e5 Mon Sep 17 00:00:00 2001 From: Toki Date: Sun, 29 Dec 2024 11:03:32 +0900 Subject: [PATCH] =?UTF-8?q?path=20=EC=84=A4=EC=A0=95=20validate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/script/shell/build.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/assets/script/shell/build.sh b/assets/script/shell/build.sh index 4cb3cc8..cf989ba 100644 --- a/assets/script/shell/build.sh +++ b/assets/script/shell/build.sh @@ -1,4 +1,25 @@ -source ~/.zshrc +#!/bin/bash + +# Load .zprofile if it exists +if [ -f ~/.zprofile ]; then + source ~/.zprofile +fi + +# Load .bash_profile if it exists +if [ -f ~/.bash_profile ]; then + source ~/.bash_profile +fi + +# Load .bashrc if it exists (optional) +if [ -f ~/.bashrc ]; then + source ~/.bashrc +fi + +# Load .zshrc if it exists (optional) +if [ -f ~/.zshrc ]; then + source ~/.zshrc +fi + echo $PATH BASEDIR=$(dirname $0) echo "===> Script location: ${BASEDIR}"