diff options
| author | czjstmax <jstmaxlol@disroot.org> | 2026-04-08 22:32:16 +0200 |
|---|---|---|
| committer | czjstmax <jstmaxlol@disroot.org> | 2026-04-08 22:32:16 +0200 |
| commit | 62e58c5ff333c46b280bd4e2fb6766d494f8dcd0 (patch) | |
| tree | 57e791fe71de370a2aedf2cfd70d3561f7029fbe /cfg | |
| parent | df9b5b6462faf9e1c0b0e6360e0fd84f48be86ab (diff) | |
| parent | 1ff387ec72593038d5e68b034cf4aac99756ada9 (diff) | |
Merge remote-tracking branch 'refs/remotes/origin/main'
Diffstat (limited to 'cfg')
| -rw-r--r-- | cfg/powershell_profile.ps1 | 53 |
1 files changed, 28 insertions, 25 deletions
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 } + |