Skip to content

Paulobox/powershell

Repository files navigation

Installation

Go to Documents directory and clone repo:

git clone https://github.com/Paulobox/powershell

chocolatey

Modules:

choco install terminal-icons.powershell fzf oh-my-posh zoxide -y

PSReadline:

Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck

PSFzf

Install-Module -Name PSFzf -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck

OTHER

Git Commands

remove .git folder in current directory
Remove-Item -Path .\.git -Recurse -Force

powershell scripts

Convert from .png to .webp in current directory

cwebp for windows

$outputDirectory = $PWD.Path
if (-not (Test-Path $outputDirectory)) {
    New-Item -ItemType Directory -Force -Path $outputDirectory
}
Get-ChildItem *.png | ForEach-Object {
    & "cwebp.exe" -q 70 -o (Join-Path -Path $outputDirectory -ChildPath "$($_.BaseName).webp") $_.FullName
}

BCD backup WINDOWS:

Open CMD as administrator:

bcd export bcdedit /export "%UserProfile%\Desktop\MyBCDEdit.bcd"
bcd import bcdedit /import "" bcdedit /import "%UserProfile%\Desktop\MyBCDEdit.bcd"

About

powershell profile config with aliases plus myscripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors