summaryrefslogtreecommitdiff
path: root/cfg/powershell_profile.ps1
blob: 21ec6980881aa3308f325c09b7d1a7b3bd5c7dc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 "⮞ "
}

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        }