Import-Module 'D:\src\GitHub\vcpkg\scripts\posh-vcpkg' Import-Module Get-ChildItemColor Set-Alias l Get-ChildItemColor -option AllScope Set-Alias ls Get-ChildItemColorFormatWide -option AllScope #C:\Users\us991808\Documents\WindowsPowerShell\Scripts\winfetch.ps1 #import-module microsoft.powershell.graphicaltools Import-Module posh-git #Import-Module oh-my-posh #Set-Theme Paradox # $env:POSH_THEMES_PATH = "C:\Users\us991808\AppData\Local\Programs\oh-my-posh\themes" $env:POSH_THEMES_PATH = "C:\Program Files (x86)\oh-my-posh\themes" #oh-my-posh --init --shell pwsh --config $env:POSH_THEMES_PATH/agnoster.omp.json | Invoke-Expression #oh-my-posh --init --shell pwsh --config $env:POSH_THEMES_PATH/blue-owl.omp2.json | Invoke-Expression oh-my-posh --init --shell pwsh --config $env:POSH_THEMES_PATH/powerlevel10k_lean.omp2.json | Invoke-Expression # $env:POSH_GIT_ENABLED = $true function Set-PoshGitStatus { $global:GitStatus = Get-GitStatus $env:POSH_GIT_STRING = Write-GitStatus -Status $global:GitStatus } New-Alias -Name 'Set-PoshContext' -Value 'Set-PoshGitStatus' -Scope Global -Force # others to try out #stelbent.minimal #rudolfs-dark #powerlevel10k_rainbow #powerlevel10k_lean #paradox #fish Import-Module PSReadLine Set-PSReadLineOption -PredictionSource History Set-PSReadLineKeyHandler -Chord "Ctrl+f" -Function ForwardWord Set-PSReadLineKeyHandler -Chord "Ctrl+d" -Function BackwardKillWord Set-PSReadLineOption -PredictionViewStyle ListView $env:Path += ';C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm\x64\bin' $env:Path += ';C:\Program Files\WingetUI\choco-cli\tools' $ErrorView = "Concise" function _z_cd($dir) { Set-Location $dir -ea Stop if ($env:_ZO_ECHO -eq "1") { Write-Host "$PWD" } } function z { if ($args.Length -eq 0) { _z_cd ~ } elseif ($args.Length -eq 1 -and $args[0] -eq '-') { _z_cd - } else { $_zoxide_result = zoxide query -- @args if ($LASTEXITCODE -eq 0) { _z_cd $_zoxide_result } } } function zi { $_zoxide_result = zoxide query -i -- @args if ($LASTEXITCODE -eq 0) { _z_cd $_zoxide_result } } function za { zoxide add @args } function zq { zoxide query @args } function zqi { zoxide query -i @args } function zr { zoxide remove @args } function zl { zoxide query --list } function zri { $_zoxide_result = zoxide query -i -- @args if ($LASTEXITCODE -eq 0) { zoxide remove $_zoxide_result } } if ($PSVersionTable.PSVersion.Major -ge 6) { $ExecutionContext.InvokeCommand.LocationChangedAction = { $null = zoxide add $(Get-Location) } } else { Write-Error "pwd hook requires pwsh - use 'zoxide init powershell --hook prompt'" } function cargo_clippy { $env:RUSTFLAGS = "-D warnings -D clippy::unwrap_used -A clippy::needless_collect -A clippy::result_large_err" cargo clippy --all --features=dataframe -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect -A clippy::result_large_err } function cargo_tests { #$env:RUSTFLAGS = "-D warnings" #cargo test --workspace cargo nextest run --all --features=dataframe } # Ignore the git tls error # $env:GIT_SSL_NO_VERIFY = 1 #f45873b3-b655-43a6-b217-97c00aa0db58 PowerToys CommandNotFound module Import-Module -Name Microsoft.WinGet.CommandNotFound #f45873b3-b655-43a6-b217-97c00aa0db58