diff options
| author | czjstmax <jstmaxlol@disroot.org> | 2025-11-21 20:51:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-21 20:51:07 +0100 |
| commit | f833d8f40d2f33f021fd3e14d78ba328f91d2ec6 (patch) | |
| tree | f57f96879583eb1b629e94f146f984182d088a6e | |
| parent | 89b69cbf2ec3066051c994269da83a18b399e1a3 (diff) | |
unfortunately i do have to use powershell every once in a while so made it at least usable
| -rw-r--r-- | cfg/powershell_profile.ps1 | 30 | ||||
| -rw-r--r-- | cfg/powershell_prompt.ps1 | 19 |
2 files changed, 30 insertions, 19 deletions
diff --git a/cfg/powershell_profile.ps1 b/cfg/powershell_profile.ps1 new file mode 100644 index 0000000..f42f49b --- /dev/null +++ b/cfg/powershell_profile.ps1 @@ -0,0 +1,30 @@ +Import-Module -Name Microsoft.WinGet.CommandNotFound + +function prompt { + $user = $env:USERNAME + $cwd = (Get-Location).Path + + 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" diff --git a/cfg/powershell_prompt.ps1 b/cfg/powershell_prompt.ps1 deleted file mode 100644 index d328d49..0000000 --- a/cfg/powershell_prompt.ps1 +++ /dev/null @@ -1,19 +0,0 @@ -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 "⮞ " -} |