In contrast, bash scripting is basically entirely lowercase with very minor exceptions.
In contrast, bash scripting is basically entirely lowercase with very minor exceptions.
/r/PowerShell is really helpful if you are stuck also there is a Slack POSH group that is really helpful.
get-content -> cat
set-location -> cd
get-childitem -> ls
etc
Get-Alias to see them all. "get-alias -Definition Select-String" to look for one for a specific command.
But powershell just looks so damned ugly to me! It's too verbose, and the idiomatic Pascal-Kebab-Case thing is just weird.
I know powershell has aliases for common things, like `ls` or `wget`, but your scripts are no longer cross-platform if you use them, as you'll use the powershell functions on Windows, but the Linux commands on Linux.
I've tried so hard to like it for so long, but I just... can't.
For TAB-completion I use MenuComplete instead of the default (Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete) as it gives you IPython-like completion menus. With something like posh-git, it's amazing: you can type git checkout and then press TAB and have an interactive menu of the branches you can switch to; or if you've done a 'git status' you can then do git add, press TAB and you get a menu that intelligently shows you what files you might want to add.
My problem with powershell is it's verb-noun, I want to tab complete on Network, not get-Network