summaryrefslogtreecommitdiff
path: root/cfg/powershell_profile.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'cfg/powershell_profile.ps1')
-rw-r--r--cfg/powershell_profile.ps130
1 files changed, 30 insertions, 0 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"