diff --git a/.gitignore b/.gitignore index 4aaf26e..e13476a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ !sce.bat !sce.sh !create_user.txt +!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 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