persona

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit dd59f104b324d120cdb0503b670f0174ee661734
parent c5b7010044da2651b30b205d855f2535d9a3cd48
Author: Minerva_juppiter <94231606+minerva-jupiter@users.noreply.github.com>
Date:   Tue,  6 Jan 2026 18:12:58 +0900

Create Microsoft.PowerShell_profile.ps1
Diffstat:
AMicrosoft.PowerShell_profile.ps1 | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 @@ -0,0 +1,28 @@ +#f45873b3-b655-43a6-b217-97c00aa0db58 PowerToys CommandNotFound module + +Import-Module -Name Microsoft.WinGet.CommandNotFound +#f45873b3-b655-43a6-b217-97c00aa0db58 + +Import-Module PSReadLine +Set-PSReadLineOption -PredictionSource History +Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete + +function ls-bash { Get-ChildItem $args -Force } +if (Test-Path alias:ls) { Remove-Item alias:ls } +Set-Alias ls ls-bash + +function rm-bash { Remove-Item -Recurse -Force $args } +if (Test-Path alias:rm) { Remove-Item alias:rm } +Set-Alias rm rm-bash + +function cp-bash { Copy-Item $args -Recurse } +if (Test-Path alias:cp) { Remove-Item alias:cp } +Set-Alias cp cp-bash + +if (Get-Module -ListAvailable posh-git) { Import-Module posh-git } + +function Update-Environment { + $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") + Write-Host "Environment variables (Path) updated!" -ForegroundColor Cyan +} +Set-Alias refresh Update-Environment