Dominic Böttger

← Back to blog

Published on April 13, 2020 by Dominic Böttger · 2 min read

The new Windows Terminal is a big step forward for all people who like to work with the command line. It’s available in the Store or via Chocolatey. I suggest using the Store version to automatically stay up to date.

I did some modifications to the basic Terminal and PowerShell configuration which can eventually be helpful for some people.

PowerShell modules used by my configuration:

Installation

Choco - Package manager for windows:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

PowerShell Core:

choco install powershell-core

Cascadia Code Font:

choco install cascadiacodepl

Configuration

First, configure your Terminal settings and set the font to “Cascadia Code PL”. Open the Windows Terminal, click on the “down-arrow” next to the tab bar and click on “Settings”.

After the Terminal settings have been modified it’s time to improve the PowerShell profile. Open it with:

code $profile

I added a function to automatically load or install modules depending on their installation state:

function Add-Module ($m) {
  if (Get-Module $m) {
    Write-Output "Module $m is already imported."
  }
  else {
    try {
      Import-Module $m -ErrorAction Stop
    }
    catch {
      if (Find-Module -Name $m | Where-Object { $_.Name -eq $m }) {
        Install-Module -Name $m -Force -Verbose -Scope CurrentUser -AllowClobber
        Import-Module $m -Verbose
      }
    }
  }
}

Add-Module "posh-git"
Add-Module "oh-my-posh"
Add-Module "z"
Set-Theme Paradox

Additional Resources

A website with copy-paste configuration for Windows Terminal themes: https://atomcorp.github.io/themes/

Written by Dominic Böttger

← Back to blog
  • Building a Private Claude Code Plugin Marketplace for Your Team

    Building a Private Claude Code Plugin Marketplace for Your Team

    Learn how to structure a private Claude Code plugin marketplace for your team, including repository layout, naming conventions, and how to register local or remote marketplaces.

  • Spec Kit + Ralph Loop: Solving AI Context Exhaustion in Large Features

    Spec Kit + Ralph Loop: Solving AI Context Exhaustion in Large Features

    How we combined Spec Kit's structured planning with Ralph Wiggum's fresh context methodology to build an AI-powered development loop that can implement features of any size without context pollution.

  • Mistral Releases Vibe CLI and Devstral 2: Open-Source AI Coding Goes Next Level

    Mistral Releases Vibe CLI and Devstral 2: Open-Source AI Coding Goes Next Level

    Mistral AI launches Vibe CLI and Devstral 2, bringing powerful open-source AI coding assistance to your terminal. Learn how to install and get started with these game-changing tools.

  • Auto Dark Mode on Linux Based on Real Sunrise and Sunset

    Auto Dark Mode on Linux Based on Real Sunrise and Sunset

    Set up automatic theme switching on Linux that follows the real sunrise and sunset times for your location, not just fixed schedules. Complete guide for Hyprland/Omarchy with systemd timers.

  • Turn Your Surface Pro 6 Into a Home Assistant Voice Satellite

    Turn Your Surface Pro 6 Into a Home Assistant Voice Satellite

    Transform your old Surface Pro 6 into a powerful voice assistant for Home Assistant using Wyoming Satellite and openWakeWord. The conference-grade microphones make it perfect for voice control.

  • Fix Surface Pro Touch After Suspend on Linux

    Fix Surface Pro Touch After Suspend on Linux

    How to fix the Surface Pro touchscreen losing functionality after suspend/resume on Linux with the linux-surface kernel using systemd sleep hooks.