summaryrefslogtreecommitdiff
path: root/cfg/powershell_profile.ps1
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-03-25 14:23:33 +0100
committerGitHub <noreply@github.com>2026-03-25 14:23:33 +0100
commit0fedde2f43a2c24d92a337656b0d5fb63d13cc14 (patch)
tree1482fc8bf473953010d16baabde1d3bf4b482cc1 /cfg/powershell_profile.ps1
parent30a094b436e36363b0ce80a88736faee2c70e3aa (diff)
faq
Diffstat (limited to 'cfg/powershell_profile.ps1')
-rw-r--r--cfg/powershell_profile.ps153
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 }
+