summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cfg/powershell_profile.ps130
-rw-r--r--cfg/powershell_prompt.ps119
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 "⮞ "
-}