How to improve your Workstation setup
Typically, you don’t install your operating system and all the tools too often. However, I had to do that exactly several times in the past two months. The first time is still exciting, because you deal with the new functions and tools. The second time at the latest, the work through the configuration is annoying.
With this article I want to show how you can (partially) automate the installation and configuration of your tools and thus achieve a repoducible working environment.
tl;dr: I use a powershell script for installation and configuring my tools. You can find it in my GitHub repository.
Prerequisits
I install my tools via with winget. Currently it is still in the status of a preview and has only limited functionality. But for my purposes it is fully sufficient. You have the choice to get it from the Windows Insider Program or directly as a release from GitHub Repository.
Start a Powershell session as administrator
Set-ExecutionPolicy Unrestricted
|
|
Setup WSL2
Due to the possibilities that arise from WSL2, I have completely switched and containerize all services that is possible. You need Windows 10 Build 1903 or later.
|
|
Then you have to get the preferred Linux distribution from the Windows Store. I prefer Ubuntu. Unfortunately, this step cannot be automated.
Install software
This is the software I use on a regular basis. You may want to modify it to your specific needs.
|
|
Install VSCode modules
This as the extensions I use on a regular basis within VSCode. You may want to modify it to your specific needs.
|
|
Setup Eye-Candy
The new Windows Terminal is an awsome replacement for the old cmd. To even improve the experience I use oh-my-posh with posh-git as extension. There are many different themes if they don’t like mine.
|
|
After that, the terminal session looks like this.
Clean up
We now reset the execution policy to the default value.
Set-ExecutionPolicy Default
I hope you enjoyed my approach. If you have any comments or additions let me know.