summaryrefslogtreecommitdiff
path: root/cfg/powershell_profile.ps1
blob: 0a6366c697f6a00f6bbde2b21918d3d140c66ddc (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
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 $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 "⮞ "
}

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"