From 1ea440b5d8fc26f8400ee103bfdbfb6c95de53c9 Mon Sep 17 00:00:00 2001 From: Toki Date: Sun, 29 Dec 2024 11:11:54 +0900 Subject: [PATCH] update path import --- assets/script/shell/check_package_update.sh | 24 ++++++++++++++++++++- assets/script/shell/path_importer.sh | 21 ++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100755 assets/script/shell/path_importer.sh diff --git a/assets/script/shell/check_package_update.sh b/assets/script/shell/check_package_update.sh index 2092d65..ef62893 100644 --- a/assets/script/shell/check_package_update.sh +++ b/assets/script/shell/check_package_update.sh @@ -1,4 +1,26 @@ -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 echo "Current workspace: ${PWD}" diff --git a/assets/script/shell/path_importer.sh b/assets/script/shell/path_importer.sh new file mode 100755 index 0000000..157c898 --- /dev/null +++ b/assets/script/shell/path_importer.sh @@ -0,0 +1,21 @@ +#!/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