- Go 1.19 or later installed on your system
Go automatically sets up GOPATH, but you should verify it's in your PATH:
# Check if GOPATH is set
go env GOPATH
# Check if GOPATH/bin is in your PATH
echo $PATH | grep -o "$(go env GOPATH)/bin"
# If GOPATH/bin is not in PATH, add it to your shell profile:
echo 'export PATH="$PATH:$(go env GOPATH)/bin"' >> ~/.zshrc
# or for bash:
echo 'export PATH="$PATH:$(go env GOPATH)/bin"' >> ~/.bash_profile
# Apply the changes
source ~/.zshrc # or source ~/.bash_profilego install github.com/aravindcm49/dir-init@latestgit clone https://github.com/aravindcm49/dir-init.git
cd dir-init
go build -o dir-init main.go
./dir-init --helpgit clone https://github.com/aravindcm49/dir-init.git
cd dir-init
go install .After installation, verify the command works:
dir-init --helpIf you get "command not found", restart your terminal or run source ~/.zshrc (or source ~/.bash_profile) to ensure PATH changes take effect.