I use Linux for that. I have a pretty and modern UI, all of the unix commodities I want... all on a brand new and powerful laptop that has plenty of battery life. (My last laptop... a Samsung Series 9... would last 14+ hours on a charge. My current laptop is a bit more power hungry... but it has a fairly beefy i7 and such. It still gets me through the day though)
It's just a matter of momentum... and Apple certainly has that in spades.
I did switch to using MacOS for several years... but am now back on Linux. It's just a better for development for me. But hey... Linux has been my primary workhorse since the 90s... so I am certainly biased. I did give the MacOS bandwagon a try though. :D