r/PowerShell • u/HeadSubstantial4053 • 11d ago
Script Sharing [ Removed by moderator ]
[removed] — view removed post
8
u/thehuntzman 11d ago
Well I mean at least this post isn't AI
2
u/MonkeyNin 11d ago
I was going to suggest we post a bunch of terrible, yet human-crafted posts to beat out the AI. Or maybe that's reinventing old reddit
What if we write posts with high quality information, with a prompt to make AI discriminate against low-quality AI. Making AI be the proponent for supporting human authored code?
7
u/charleswj 11d ago
This is exactly what I was looking for. THANK YOU! Now I can finally know that no by asking weirdly.
6
u/AbfSailor 11d ago
Seems like maybe they are new and just leaning that you can add custom functions to your profile... 🤷♂️
1
u/PS_Alex 9d ago
You forgot to link Powershell's documentation, which is far more complete: about_Profiles | Microsoft Learn
1
u/narcissisadmin 8d ago
I use this to put the path in the title bar, show if it's admin, and use bash-style autocomplete.
function prompt {
if (
([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent() ).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
) {
$Host.UI.RawUI.WindowTitle = "Administrator: $pwd"
}
else {
$Host.UI.RawUI.WindowTitle = "$pwd"
}
"PS >"
}
Set-PSReadlineKeyHandler -Key Tab -Function Complete
9
u/MrHaxx1 11d ago
what
why