-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMicrosoft.PowerShell_profile.ps1
More file actions
31 lines (25 loc) · 1.07 KB
/
Microsoft.PowerShell_profile.ps1
File metadata and controls
31 lines (25 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Import-Module PSReadLine
Import-Module -Name Terminal-Icons
$env:PYTHONIOENCODING='utf-8'
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\zash.omp.json" | Invoke-Expression
. $PSScriptRoot\psreadline_config.ps1
. $PSScriptRoot\tab_completion.ps1
. $PSScriptRoot\save_in_history.ps1
. $PSScriptRoot\profile_alias.ps1
. $PSScriptRoot\git_alias.ps1
. $PSScriptRoot\gh-copilot.ps1
# Check if the visual_studio_alias.ps1 file exists before loading it
$visualStudioAliasPath = "C:\vdev\alias\visual_studio_alias.ps1"
if (Test-Path $visualStudioAliasPath) {
. $visualStudioAliasPath
}
# 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"
}
Invoke-Expression (& { (zoxide init powershell | Out-String) })