Skip to content

Instantly share code, notes, and snippets.

@joelquintyn
Last active April 14, 2026 19:32
Show Gist options
  • Select an option

  • Save joelquintyn/faf196095c7058867d17319fbcc5f645 to your computer and use it in GitHub Desktop.

Select an option

Save joelquintyn/faf196095c7058867d17319fbcc5f645 to your computer and use it in GitHub Desktop.
My Windows PowerShell profile configs.
# Joel's PowerShell Profile
# This file is loaded every time a new PowerShell session starts.
# You can customize your environment by adding commands, functions, and aliases here.
# For more information on customizing your PowerShell profile, see:
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles
# Note: If you have multiple PowerShell hosts (e.g., PowerShell ISE, Visual Studio Code), you can create separate profile files for each host.
# This file is the "Current User, Current Host" profile, which applies to the current user and the current host application.
# The profile file is located at: $env:USERPROFILE\.config\powershell\joelq.devstation_profile.ps1
# Modules
Import-Module -Name Terminal-Icons
Import-Module -Name CompletionPredictor
if ($host.Name -eq 'ConsoleHost') {
Import-Module PSReadLine
}
# PSReadLine Options
Set-PSReadLineOption -PredictionSource HistoryAndPlugin
Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -EditMode Windows
# My Functions
function Invoke-WuwaTracker {
# A helper function to fetch and execute the latest wuwatracker import script from GitHub.
Invoke-WebRequest -UseBasicParsing -Headers @{"User-Agent" = "Mozilla/5.0" } https://raw.githubusercontent.com/wuwatracker/wuwatracker/refs/heads/main/import.ps1 | Invoke-Expression
}
function uvlist {
# A helper function to list Python versions managed by uv (Universal Version Manager).
uv python list $args
}
#End of My Functions
#Aliases
Set-Alias ll ls
Set-Alias g git
Set-Alias grep finstr
Set-Alias tig 'C:Program Files\Git\usr\bin\tig.exe'
Set-Alias less 'C:\Program Files\Git\usr\bin\less.exe'
Set-Alias wuwa-tracker Invoke-WuwaTracker
# !Always keep these at the bottom of the file!
# Initialize oh-my-posh prompt.
oh-my-posh init pwsh | Invoke-Expression
# Initialize zoxide.
Invoke-Expression (& { (zoxide init powershell | Out-String) })
# Initialize fnm (Fast Node Manager).
fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment