Inspired by Command-Line Utilities- part 2- implementation

The translation of Evan Hahn’s blog post utilities to powershell took me in total 4 hours of vibe coding.

Notes:

  1. I did not give the AI the code, but the description of the tool
  2. I have put each category into a special file
  3. I haven’t implemented all –  because some were pretty useless for me ( like pastas for monitoring clipboard ) or super easy in powershell ( uuid = [guid]::NewGuid() )
  4. AI was proved useful to generate an integration powershell , also code for copy to Powershell Profile about_Profiles – PowerShell | Microsoft Learn
  5. AI was proved also useful to generate the list of tools as a remember when you open a Powershell prompt

You will find the code at ignatandrei/powershellProfile: A collection of utilities for powershell profile

You can profit from them by running ( attention, it will clear your actual profile)

# Ensure the profile directory exists, then download the latest unified profile
$profileDir = Split-Path -Parent $PROFILE
if (-not (Test-Path $profileDir)) { New-Item -ItemType Directory -Force -Path $profileDir | Out-Null }
Invoke-WebRequest -UseBasicParsing -Uri “https://raw.githubusercontent.com/ignatandrei/powershellProfile/main/dist/pws-profile.ps1″ -OutFile $PROFILE


Posted

in

, , ,

by

Tags: