This repository contains a dynamic collection of scripts designed to streamline the development setup process across various platforms. The goal is to provide an automated, efficient, and continuously evolving set of tools that cater to the ever-changing needs of developers.
- Cross-platform Compatibility: Works seamlessly across different operating systems and environments.
- Automation: Reduces manual setup and configuration, letting developers focus on what they do best: code.
- Adaptive: Regular updates and additions to ensure the tools remain relevant and efficient.
- Windows Operating System
- PowerShell with administrative rights
Setup-DevEnvironment.ps1
: Ensures that Chocolatey is installed and then facilitates the installation, upgrade, or uninstallation of a predefined list of developer tools.Setup-PyEnvWin.ps1
: Facilitates the installation or uninstallation ofpyenv-win
on Windows platforms.Setup-DockerEnvironment.ps1
: Installs Docker Desktop for Windows using Chocolatey.Setup-GitGPG.ps1
: Configures Git to sign commits and tags with GPG on Windows.
This script ensures that Chocolatey is installed. After this verification, it will either install, upgrade, or uninstall a specified list of developer tools based on the versions provided in the script.
Note: Please make sure that you run this as administrator.
To Run the Script Directly from GitHub:
Set-ExecutionPolicy Bypass -Scope Process
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/neurabytes/nb-local-setup/develop/windows/bin/Setup-DevEnvironment.ps1')
This script aids in setting up pyenv-win
to manage Python versions on a Windows machine. It can both install and uninstall pyenv-win
.
Note: Please make sure that you run this as non administrator.
To Run the Script Directly from GitHub:
Set-ExecutionPolicy Bypass -Scope Process
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/neurabytes/nb-local-setup/develop/windows/bin/Setup-PyEnvWin.ps1')
This script installs Docker Desktop for Windows using Chocolatey.
To Run the Script Directly from GitHub:
Set-ExecutionPolicy Bypass -Scope Process
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/neurabytes/nb-local-setup/develop/windows/bin/Setup-DockerEnvironment.ps1')
This script configures Git to sign commits and tags with GPG on Windows. It automates the process of installing GPG and setting it up with Git for commit signature verification.
To Run the Script Directly from GitHub:
Set-ExecutionPolicy Bypass -Scope Process -Force
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/neurabytes/nb-local-setup/develop/windows/bin/Setup-GitGPG.ps1')
The PowerShell commands provided above pull scripts directly from the web and execute them. This can be risky if you're not entirely certain of the script's source or its content. Always ensure you trust the source and have inspected the script content before executing.
Given the default security policies on Windows, you might encounter an error like "Running scripts is disabled on this system". If this happens, you can temporarily allow the script to run with the following command, but exercise this with caution:
Set-ExecutionPolicy Bypass -Scope Process
This command allows scripts to run in your current session. Remember, only use this if you trust the source of the script.
If you have suggestions for improvements or bug fixes, feel free to submit a pull request or open an issue.