2 ms·
I also moved from bash (after nearly 2 decades!) to powershell. Here's my powershell profile, including instructions for setting up a new box and additional ali
by nailer 10y ago
I also moved from bash (after nearly 2 decades!) to powershell. Here's my powershell profile, including instructions for setting up a new box and additional aliases for Unix commands:
https://github.com/mikemaccana/powershell-profile/blob/master/Microsoft.PowerShell_profile.ps1 https://github.com/mikemaccana/powershell-profile/blob/maste...
Short answer for 'How do I learn powershell?' is:
* Learn 'select'
* Learn 'where'
Once you get those two, and get out of the scraping with sed/grep/awk mentality you now properly get powershell.
- mastax 10y agoThere seems to be a certificate request appended to line 46 I don't know if this information is sensitive, but you probably don't want it there either way.
- nailer 10y agoGood spot - CSR is only a public key so not sensitive - but removed.
- golf1052 10y agoI don't remember where I found it but I use this for touch https://gist.github.com/golf1052/39603656500adcaef3e8fd3d210d91b5 https://gist.github.com/golf1052/39603656500adcaef3e8fd3d210... It acts like Linux touch where if the file already exists it just updates the last modified date
- newman314 10y agoWhy do you choose not to install OpenSSH over chocolatey? I'm looking for a clean way to install OpenSSH on Windows.
- mastazi 10y agoLooking at the code (commented lines at the top), I thought parent was using Chocolatey as a OneGet provider? See https://github.com/chocolatey/chocolatey-oneget https://github.com/chocolatey/chocolatey-oneget
- nailer 10y agoYep this is correct. I prefer less software, though apparently chocolatey oneget isn't as well maintained as regular chocolatey.