diff --git a/PowerShell/Microsoft.PowerShell_profile.ps1 b/PowerShell/Microsoft.PowerShell_profile.ps1 index 90da5c2..87c6535 100644 --- a/PowerShell/Microsoft.PowerShell_profile.ps1 +++ b/PowerShell/Microsoft.PowerShell_profile.ps1 @@ -5,6 +5,8 @@ ## ###### + + <# ================= - user variable #> @@ -16,6 +18,57 @@ $tests = "S:\__test" $gradlearchive = "S:\Document\gradle-builds" + +<# ================= + - TOOLCHAILS + #> + +<# === Chocolatey === #> + +# $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" +# if (Test-Path($ChocolateyProfile)) { +# Import-Module "$ChocolateyProfile" +# } + +<# === Python Versions managered by hatch === #> + +$pythons = "$HOME/AppData/Local/hatch/pythons" + +function pys () { + $version, $args_pass = $args + $py_path = "$pythons/$version/python" + echo "using Python version : $version" + echo "using Python path : $py_path" + & "$py_path/python.exe" $args_pass +} + +function pysm () { + hatch python $args +} + +<# === Oh-My-Posh === #> + +# $USE_POSH_THEME = "catppuccin" +# $USE_POSH_THEME = "chips" +# $USE_POSH_THEME = "emodipt-extend" # original +# $USE_POSH_THEME = "hunk" +# $USE_POSH_THEME = "multiverse-neon" +# $USE_POSH_THEME = "negligible" +# $USE_POSH_THEME = "peru" +# $USE_POSH_THEME = "pure" +# $USE_POSH_THEME = "ys" +$USE_POSH_THEME = "sukazyo" + +oh-my-posh init pwsh --config "$HOME\.config\oh-my-posh\$USE_POSH_THEME.omp.json" | Invoke-Expression +# oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\$USE_POSH_THEME.omp.json" | Invoke-Expression + +<# === Others Auto Generated === #> + +#f45873b3-b655-43a6-b217-97c00aa0db58 PowerToys CommandNotFound module +Import-Module -Name Microsoft.WinGet.CommandNotFound +#f45873b3-b655-43a6-b217-97c00aa0db58 + + <# ================= - Alias #> @@ -72,56 +125,6 @@ function lgg { } <# == zoxide cd == #> -Invoke-Expression (& { (zoxide init powershell | Out-String) }) Remove-Alias cd -Set-Alias -Name cd -Value z -Set-Alias -Name cdi -Value zi +Invoke-Expression (& { (zoxide init powershell --cmd cd | Out-String) }) -<# ================= - - TOOLCHAILS - #> - -<# === Chocolatey === #> - -# $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" -# if (Test-Path($ChocolateyProfile)) { -# Import-Module "$ChocolateyProfile" -# } - -<# === Python Versions managered by hatch === #> - -$pythons = "$HOME/AppData/Local/hatch/pythons" - -function pys () { - $version, $args_pass = $args - $py_path = "$pythons/$version/python" - echo "using Python version : $version" - echo "using Python path : $py_path" - & "$py_path/python.exe" $args_pass -} - -function pysm () { - hatch python $args -} - -<# === Oh-My-Posh === #> - -# $USE_POSH_THEME = "catppuccin" -# $USE_POSH_THEME = "chips" -# $USE_POSH_THEME = "emodipt-extend" # original -# $USE_POSH_THEME = "hunk" -# $USE_POSH_THEME = "multiverse-neon" -# $USE_POSH_THEME = "negligible" -# $USE_POSH_THEME = "peru" -# $USE_POSH_THEME = "pure" -# $USE_POSH_THEME = "ys" -$USE_POSH_THEME = "sukazyo" - -oh-my-posh init pwsh --config "$HOME\.config\oh-my-posh\$USE_POSH_THEME.omp.json" | Invoke-Expression -# oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\$USE_POSH_THEME.omp.json" | Invoke-Expression - -<# === Others Auto Generated === #> - -#34de4b3d-13a8-4540-b76d-b9e8d3851756 PowerToys CommandNotFound module -Import-Module "C:\Program Files\PowerToys\WinUI3Apps\..\WinGetCommandNotFound.psd1" -#34de4b3d-13a8-4540-b76d-b9e8d3851756