fix zoxide

This commit is contained in:
A.C.Sukazyo Eyre 2024-06-06 18:19:47 +08:00
parent 98107cca8b
commit 0c5fa4b2b6
Signed by: Eyre_S
GPG Key ID: C17CE40291207874

View File

@ -5,6 +5,8 @@
## ##
###### ######
<# ================= <# =================
- user variable - user variable
#> #>
@ -16,6 +18,57 @@ $tests = "S:\__test"
$gradlearchive = "S:\Document\gradle-builds" $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 - Alias
#> #>
@ -72,56 +125,6 @@ function lgg {
} }
<# == zoxide cd == #> <# == zoxide cd == #>
Invoke-Expression (& { (zoxide init powershell | Out-String) })
Remove-Alias cd Remove-Alias cd
Set-Alias -Name cd -Value z Invoke-Expression (& { (zoxide init powershell --cmd cd | Out-String) })
Set-Alias -Name cdi -Value zi
<# =================
- 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