From 0fedde2f43a2c24d92a337656b0d5fb63d13cc14 Mon Sep 17 00:00:00 2001 From: czjstmax Date: Wed, 25 Mar 2026 14:23:33 +0100 Subject: faq --- cfg/powershell_profile.ps1 | 53 ++++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 25 deletions(-) (limited to 'cfg/powershell_profile.ps1') diff --git a/cfg/powershell_profile.ps1 b/cfg/powershell_profile.ps1 index 0a6366c..21ec698 100644 --- a/cfg/powershell_profile.ps1 +++ b/cfg/powershell_profile.ps1 @@ -1,30 +1,33 @@ Import-Module -Name Microsoft.WinGet.CommandNotFound -function prompt { - $user = $env:USERNAME - $cwd = (Get-Location).Path +function prompt +{ + $user = $env:USERNAME + $cwd = (Get-Location).Path - Write-Host "╭" -ForegroundColor white -NoNewline - Write-Host "(" -ForegroundColor red -NoNewline - Write-Host $user -ForegroundColor white -NoNewline - Write-Host " ⮞" -ForegroundColor red -NoNewline - Write-Host "⮞" -ForegroundColor white -NoNewline - Write-Host "⮞ " -ForegroundColor red -NoNewline - if ($cwd -eq "C:\Users\$user") { - Write-Host "~" -ForegroundColor white -NoNewline - } else { - Write-Host $cwd -ForegroundColor white -NoNewline - } - Write-Host ")" -ForegroundColor red - Write-Host "╰" -ForegroundColor red -NoNewline - return "⮞ " + Write-Host "╭" -ForegroundColor white -NoNewline + Write-Host "(" -ForegroundColor red -NoNewline + Write-Host "max" -ForegroundColor white -NoNewline + Write-Host " ⮞" -ForegroundColor red -NoNewline + Write-Host "⮞" -ForegroundColor white -NoNewline + Write-Host "⮞ " -ForegroundColor red -NoNewline + if ($cwd -eq "C:\Users\$user") { + Write-Host "~" -ForegroundColor white -NoNewline + } else { + Write-Host $cwd -ForegroundColor white -NoNewline + } + Write-Host ")" -ForegroundColor red + Write-Host "╰" -ForegroundColor red -NoNewline + return "⮞ " } -New-Alias gcc "F:\downloadzszszszsz\z_winlib_mingw_ucrt\bin\gcc.exe" -New-Alias v "nvim" -New-Alias src ". $profile" -New-Alias vimrc "nvim ~/.vimrc" -New-Alias frc "nvim $profile" -New-Alias ":q" "exit" -New-Alias suv "sudo nvim" -New-Alias py "python" +function gcc { F:\downloadzszszszsz\z_winlib_mingw_ucrt\bin\gcc.exe } +function g++ { F:\downloadzszszszsz\z_winlib_mingw_ucrt\bin\g++.exe } +function v { nvim } +function src { . $profile } +function vimrc { nvim ~/.vimrc } +function frc { nvim $profile } +function :q { exit } +function suv { sudo nvim } +function py { python } + -- cgit v1.3.1