Skip to content

Instantly share code, notes, and snippets.

@crstnmac
Last active August 11, 2022 15:19
Show Gist options
  • Save crstnmac/6922fdb76b11405e18ee83d989f64878 to your computer and use it in GitHub Desktop.
Save crstnmac/6922fdb76b11405e18ee83d989f64878 to your computer and use it in GitHub Desktop.
Powershell config
Import-Module posh-git
Import-Module PSReadLine
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/cris.omp.json" | Invoke-Expression
# This will enable the prediction source for IntelliSense
Set-PSReadLineOption -PredictionSource 'History'
# (Optional) Change the darker grey to a lighter grey to account for dark backgrounds
Set-PSReadLineOption -Colors @{ InlinePrediction = '#9CA3AF' }
# 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"
}
@crstnmac
Copy link
Author

Updated config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment