https://github.com/audio-engineer/wsl-setup
A shell script for setting up a complete C development environment on WSL
https://github.com/audio-engineer/wsl-setup
Last synced: about 1 year ago
JSON representation
A shell script for setting up a complete C development environment on WSL
- Host: GitHub
- URL: https://github.com/audio-engineer/wsl-setup
- Owner: audio-engineer
- Archived: true
- Created: 2023-11-18T12:29:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T11:31:08.000Z (over 2 years ago)
- Last Synced: 2025-03-11T02:48:22.899Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# WSL Setup
This shell script will install and set up the following libraries and software on your WSL system:
- `libssl-dev`
- `pkg-config`
- `Ninja`
- `Clang 17`
- `Clang-Format 17`
- `Clang-Tidy 17`
- `LLDB 17`
- `CMake 3.26.4`
- `keychain`
- `Z shell`
- `Oh My Zsh`
- `zsh-autosuggestions`
- `zsh-completions`
- `zsh-syntax-highlighting`
- `GNU Debugger`
Furthermore, it will:
- Upgrade `git` to the latest version
- Create an SSH key pair for usage with GitHub and display the public key to the user at the end of the script
- Add the SSH key to `keychain` so that its password doesn't have to be entered every time it's used
- Configure `git` `user.name`, `user.email` and default branch
- Lock the `CMake` version, making it impossible to accidentally upgrade it
- Make `Z shell` the default shell
## Usage
### Prerequisites
- `wget`
### Installation
After logging into WSL, run the following command:
```shell
sh <(wget -qO - https://raw.githubusercontent.com/audio-engineer/wsl-setup/main/installer)
```
The script will generate an `error.log` file in the directory where it's run.
You can remove it after running the installer by running `rm error.log`.