Hacker News new | past | comments | ask | show | jobs | submit login

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/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.




There 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.


Good spot - CSR is only a public key so not sensitive - but removed.


I don't remember where I found it but I use this for touch https://gist.github.com/golf1052/39603656500adcaef3e8fd3d210...

It acts like Linux touch where if the file already exists it just updates the last modified date


Why do you choose not to install OpenSSH over chocolatey?

I'm looking for a clean way to install OpenSSH on Windows.


Looking 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


Yep this is correct. I prefer less software, though apparently chocolatey oneget isn't as well maintained as regular chocolatey.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: