My development environment configuration.
Open an elevated PowerShell terminal and run the following command:
. setup.ps1
Important: You must have your execution policy set to Unrestricted
or Bypass
for this to work:
Set-ExecutionPolicy Unrestricted
The following setup will be performed:
- Configures some aspects of Windows.
- Ensures necessary applications are installed; achieved using winget.
- Installs Ubuntu via WSL.
- Copies the applicable configuration files to their required locations.
- Sets up a PowerShell profile.
Important: This setup process will require some input from you, either in the form of software installation dialogues or setting up the WSL Ubuntu username and password.
To apply any updates you just need to pull them down and run the setup.ps1
script again.
The profile initializes oh-my-posh
and defines the following helper functions:
..
Navigates to the parent directory.home
Navigates to the user's Home directory.downloads
Navigates to the user's Downloads directory.hosts
Opens thehosts
file in Visual Studio Code.ps-profile
Opens the PowerShell profile file in Visual Studio Code.aws-config
Opens the AWS configuration directory in Visual Studio Code.delete
Deletes a file or directory.flush-dns
Flushes the DNS cache.update
Updates all applications, modules and module help files.empty-bin
Empties the Recycle Bin.aws-profiles
Lists the available AWS profiles.