Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
!sce.bat
!sce.sh
!create_user.txt
!windowsSetup.bat
!macSetup.sh
3 changes: 3 additions & 0 deletions macSetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add an alias for the SCE cli in .zshrc file
echo "./sce.sh completion" >> ~/.bashrc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this? cant the user just copy paste this line in their own terminal

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. This file is unneeded

source ~/.bashrc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is already run by default on most terminals so the user just needs to make the change once in bashrc.

11 changes: 11 additions & 0 deletions windowsSetup.bat
Original file line number Diff line number Diff line change
@@ -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.
)