Skip to content

Instantly share code, notes, and snippets.

@ShardulJunagade
Last active July 23, 2025 23:49
Show Gist options
  • Select an option

  • Save ShardulJunagade/11fab5ad84fe8b01771d1d62e78eee94 to your computer and use it in GitHub Desktop.

Select an option

Save ShardulJunagade/11fab5ad84fe8b01771d1d62e78eee94 to your computer and use it in GitHub Desktop.
Microsoft PowerShell 7 Profile
# Set prediction view style to ListView in PSReadLine (default is InlineView)
# This shows predictions in a dropdown list rather than inline gray text.
Set-PSReadLineOption -PredictionViewStyle ListView
# Ensure Terminal-Icons module is installed before importing
# Helps visually distinguish between files, directories, and types in listings like Get-ChildItem
if (-not (Get-Module -ListAvailable -Name Terminal-Icons)) {
Install-Module -Name Terminal-Icons -Scope CurrentUser -Force -SkipPublisherCheck
}
# Import the Terminal-Icons module to show file and folder icons in the terminal
Import-Module -Name Terminal-Icons
# Import the Chocolatey Profile that contains the necessary code to enable
# tab-completions to function for `choco`.
# Be aware that if you are missing these lines from your profile, tab completion
# for `choco` will not function.
# See https://ch0.co/tab-completion for details.
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
# Initialize oh-my-posh for PowerShell with the current theme configuration
# oh-my-posh init pwsh | Invoke-Expression
# My Fav Themes - atomicBit, atomic, huvix, json, kali, lightgreen, negligible, powerlevel10k_lean, robbyrussell
oh-my-posh init pwsh --config C:\Users\shard\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json | Invoke-Expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment