From cdb1eb78982e47ae4c0c2cfb14ce8192abf8545b Mon Sep 17 00:00:00 2001 From: pnavab <114110926+pnavab@users.noreply.github.com> Date: Sat, 27 Apr 2024 13:11:29 -0700 Subject: [PATCH 1/2] add windows .bat --- .gitignore | 1 + windowsSetup.bat | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 windowsSetup.bat diff --git a/.gitignore b/.gitignore index 4aaf26e..88a7f54 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ !sce.bat !sce.sh !create_user.txt +!windowsSetup.bat \ No newline at end of file diff --git a/windowsSetup.bat b/windowsSetup.bat new file mode 100644 index 0000000..586dc44 --- /dev/null +++ b/windowsSetup.bat @@ -0,0 +1,11 @@ +@echo off + +REM Add the current directory to the user PATH environment variables if it is not already there +for /f "usebackq tokens=2,*" %%A in (`reg query HKCU\Environment /v PATH`) do set my_user_path=%%B + +echo.%my_user_path% | findstr /C:"%cd%" 1>nul +if errorlevel 1 ( + setx PATH "%my_user_path%;%cd%" +) else ( + echo The current directory is already in the PATH. +) \ No newline at end of file From 6407c7e5a7f05a6dd6d9c225c04aa3989ad2f00a Mon Sep 17 00:00:00 2001 From: pnavab <114110926+pnavab@users.noreply.github.com> Date: Sat, 27 Apr 2024 13:30:22 -0700 Subject: [PATCH 2/2] mac setup --- .gitignore | 3 ++- macSetup.sh | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 macSetup.sh diff --git a/.gitignore b/.gitignore index 88a7f54..e13476a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ !sce.bat !sce.sh !create_user.txt -!windowsSetup.bat \ No newline at end of file +!windowsSetup.bat +!macSetup.sh \ No newline at end of file diff --git a/macSetup.sh b/macSetup.sh new file mode 100644 index 0000000..f67bb20 --- /dev/null +++ b/macSetup.sh @@ -0,0 +1,3 @@ +# Add an alias for the SCE cli in .zshrc file +echo "./sce.sh completion" >> ~/.bashrc +source ~/.bashrc \ No newline at end of file